diff options
Diffstat (limited to '.github/workflows/codecoverage.yml')
| -rw-r--r-- | .github/workflows/codecoverage.yml | 24 |
1 files changed, 21 insertions, 3 deletions
diff --git a/.github/workflows/codecoverage.yml b/.github/workflows/codecoverage.yml index 49c51310..cefc5ddb 100644 --- a/.github/workflows/codecoverage.yml +++ b/.github/workflows/codecoverage.yml @@ -29,7 +29,7 @@ jobs: fetch-depth: "0" - name: Set up Python ${{ env.python_version }} - uses: actions/setup-python@v5 + uses: actions/setup-python@v7 with: python-version: ${{ env.python_version }} @@ -58,14 +58,32 @@ jobs: - name: Run Coverage tests run: | - pytest tests/unit -v --cov-report xml --cov=./ + pytest tests/unit -v --cov-report xml --cov=./ --junitxml=test-results/junit-codecoverage-codecoverage-pytest-s0.xml working-directory: ${{ steps.identify.outputs.collection_path }} - name: Upload coverage report to Codecov - uses: codecov/codecov-action@v5 + uses: codecov/codecov-action@v7.0.0 with: directory: ${{ steps.identify.outputs.collection_path }} fail_ci_if_error: false token: ${{ secrets.CODECOV_TOKEN }} env: CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} + + - name: Upload test results to Codecov + if: >- + ${{ !cancelled() && + (github.event_name != 'pull_request' || + github.event.pull_request.head.repo.fork == false) && + github.actor != 'dependabot[bot]' }} + uses: codecov/codecov-action@fb8b3582c8e4def4969c97caa2f19720cb33a72f # v7.0.0 + timeout-minutes: 5 + continue-on-error: true + with: + report_type: test_results + files: ${{ steps.identify.outputs.collection_path }}/test-results/junit-codecoverage-codecoverage-pytest-s0.xml + disable_search: true + fail_ci_if_error: false + flags: unit-pytest-s0 + name: unit-pytest-s0 + version: v11.3.1 |
