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 d6a4df8
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 8 deletions.
24 changes: 16 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,22 @@ 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
runs-on: ubuntu-latest
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/[email protected]
id: check-version
Expand All @@ -72,6 +83,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 d6a4df8

Please sign in to comment.