Skip to content

Commit fe20d93

Browse files
committed
Onboard test coverage to Codecov
Adds the codecov action to the coverage workflow in tox-test.yml
1 parent 82b07f2 commit fe20d93

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

.github/workflows/tox-test.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@ jobs:
3333
run: tox -e pidiff
3434
coverage:
3535
runs-on: ubuntu-latest
36+
permissions:
37+
id-token: write
3638
steps:
3739
- uses: actions/checkout@v2
3840
- name: Install RPM
@@ -45,6 +47,14 @@ jobs:
4547
run: pip install tox
4648
- name: Run Tox
4749
run: tox -e cov
50+
- name: Upload coverage to Codecov
51+
uses: codecov/codecov-action@v5
52+
if: github.event_name == 'pull_request' || (github.event_name == 'push' && github.ref =='refs/heads/master')
53+
with:
54+
use_oidc: true
55+
flags: unit-tests
56+
files: coverage.xml
57+
fail_ci_if_error: false
4858
docs:
4959
runs-on: ubuntu-latest
5060
steps:

0 commit comments

Comments
 (0)