Skip to content

Commit

Permalink
ci: update Python version in CI workflow and add failure handling step (
Browse files Browse the repository at this point in the history
  • Loading branch information
overcat authored Nov 15, 2024
1 parent a81ed83 commit 0af828a
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions .github/workflows/continuous-integration-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ jobs:
run: poetry run pytest -v -rs tests --runslow --cov=./ --cov-report=xml

- name: Upload coverage to Codecov
if: matrix.platform.python-version == '3.11' && matrix.platform.os == 'ubuntu-latest'
if: matrix.platform.python-version == '3.13' && matrix.platform.os == 'ubuntu-latest'
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
Expand All @@ -95,11 +95,6 @@ jobs:
steps:
- uses: actions/checkout@v3

- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: '3.13'

- name: Install poetry
run: pipx install poetry

Expand All @@ -108,3 +103,11 @@ jobs:

- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1

complete:
if: always()
needs: [ pre-commit, test, deploy ]
runs-on: ubuntu-latest
steps:
- if: contains(needs.*.result, 'failure') || contains(needs.*.result, 'cancelled')
run: exit 1

0 comments on commit 0af828a

Please sign in to comment.