Skip to content

Commit

Permalink
codecov upload action condition
Browse files Browse the repository at this point in the history
  • Loading branch information
kozlov721 committed Sep 25, 2024
1 parent 2294a16 commit 0bdec98
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -133,13 +133,14 @@ jobs:
run: pytest --cov --junitxml=junit.xml -o junit_family=legacy

- name: Upload test results to Codecov
if: ${{ !cancelled() }}
if: matrix.os == 'ubuntu-latest'
uses: codecov/test-results-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: false

- name: Upload coverage results to Codecov
if: matrix.os == 'ubuntu-latest'
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
Expand Down

0 comments on commit 0bdec98

Please sign in to comment.