From 552935b69d7a37bb36823b582357644ba3a7af64 Mon Sep 17 00:00:00 2001 From: mbooz Date: Mon, 22 Jun 2026 16:23:19 -0400 Subject: [PATCH] Update codecov-action to v5 Updates codecov-action to v5, uses OIDC authentication, and adds the unit-tests flag to codecov reports. Only runs codecov-action on pull-requests and pushes to master. --- .github/workflows/tox-test.yml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/workflows/tox-test.yml b/.github/workflows/tox-test.yml index a181bc1..384c979 100644 --- a/.github/workflows/tox-test.yml +++ b/.github/workflows/tox-test.yml @@ -61,6 +61,8 @@ jobs: run: tox -e static coverage: runs-on: ubuntu-latest + permissions: + id-token: write steps: - uses: actions/checkout@v3 - name: Install RPM @@ -80,10 +82,12 @@ jobs: - name: Install pytest cov run: pip install pytest-cov - name: Upload coverage to Codecov - uses: codecov/codecov-action@v4 - env: - CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} + uses: codecov/codecov-action@v5 + if: github.event_name == 'pull_request' || (github.event_name == 'push' && github.ref =='refs/heads/master') with: + use_oidc: true + flags: unit-tests + files: coverage.xml fail_ci_if_error: true verbose: true docs: