Skip to content

Commit

Permalink
Tweak CI flow
Browse files Browse the repository at this point in the history
  • Loading branch information
mtth committed Aug 8, 2023
1 parent 9e523d5 commit 0fdcab4
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 8 deletions.
23 changes: 15 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,6 @@ jobs:
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Extract version
id: extract-version
run: |
PACKAGE_VERSION="$(./scripts/version.sh)"
echo "version=$PACKAGE_VERSION" >>"$GITHUB_OUTPUT"
- name: Download Hadoop
run: |
echo "HADOOP_HOME=$(./scripts/hadoop.sh download)" >>"$GITHUB_ENV"
Expand All @@ -56,6 +51,21 @@ jobs:
run: HDFSCLI_TEST_URL="$WEBHDFS_URL" python -m pytest --cov=hdfs
- name: Test on HTTPFS
run: HDFSCLI_TEST_URL="$HTTPFS_URL" HDFSCLI_NOSNAPSHOT=1 python -m pytest --cov=hdfs
- name: Stop HDFS
if: always()
run: ./scripts/hadoop.sh stop
tag:
name: Tag
needs:
- test
steps:
- name: Check out
uses: actions/checkout@v3
- name: Extract version
id: extract-version
run: |
PACKAGE_VERSION="$(./scripts/version.sh)"
echo "version=$PACKAGE_VERSION" >>"$GITHUB_OUTPUT"
- name: Check if tag exists
uses: mukunku/tag-exists-action@v1.1.0
id: check-version
Expand All @@ -72,6 +82,3 @@ jobs:
github_repo: ${{ github.repository }}
github_token: ${{ secrets.GITHUB_TOKEN }}
version: ${{ steps.extract-version.outputs.version }}
- name: Stop HDFS
if: always()
run: ./scripts/hadoop.sh stop
2 changes: 2 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ jobs:
uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Install
run: pip install twine
- name: Publish
run: |
python setup.py sdist
Expand Down

0 comments on commit 0fdcab4

Please sign in to comment.