Skip to content

Commit

Permalink
Fail CI if codecov upload fails (#53)
Browse files Browse the repository at this point in the history
Let the CI job fail if the codecov upload fails. Otherwise it could stop
and we wouldn't know.
  • Loading branch information
leouieda authored May 12, 2023
1 parent a4630fb commit bffdf6d
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -138,12 +138,11 @@ jobs:
run: coverage xml

- name: Upload coverage to Codecov
uses: codecov/codecov-action@v2
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: ./coverage.xml
env_vars: OS,PYTHON
# Don't mark the job as failed if the upload fails for some reason.
# It does sometimes but shouldn't be the reason for running
# everything again unless something else is broken.
fail_ci_if_error: false
# Fail the job so we know coverage isn't being updated. Otherwise it
# can silently drop and we won't know.
fail_ci_if_error: true

0 comments on commit bffdf6d

Please sign in to comment.