Skip to content

Commit 157f851

Browse files
Merge pull request #35 from mbooz-rh/RHELDST-40404
Onboard test coverage to Codecov [RHELDST-40404]
2 parents fb75d17 + d9acc2a commit 157f851

3 files changed

Lines changed: 12 additions & 4 deletions

File tree

.github/workflows/ci.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ on:
99
jobs:
1010
standard-ci:
1111
runs-on: ubuntu-latest
12+
permissions:
13+
id-token: write
1214

1315
steps:
1416
- uses: actions/checkout@v2
@@ -29,7 +31,15 @@ jobs:
2931
env:
3032
GITHUB_TOKEN: ${{ github.token }}
3133
run: tox -e cov-ci
32-
34+
35+
- name: Upload coverage to Codecov
36+
uses: codecov/codecov-action@v5
37+
with:
38+
use_oidc: true
39+
flags: unit-tests
40+
files: coverage.xml
41+
fail_ci_if_error: false
42+
3343
- name: Run static analysis
3444
run: tox -e static
3545

test-requirements.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ frozenlist2
77
mypy; python_version > "3.0"
88
black; python_version > "3.0"
99
pylint; python_version > "3.0"
10-
coveralls; python_version > "3.0"
1110
sphinx; python_version > "3.0"
1211
sphinx-argparse; python_version > "3.0"
1312
alabaster; python_version > "3.0"

tox.ini

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,7 @@ commands=
2323
passenv=GITHUB_*
2424
usedevelop=true
2525
commands=
26-
pytest --cov=pubtools.exodus {posargs}
27-
coveralls --service=github
26+
pytest --cov=pubtools.exodus --cov-report=xml {posargs}
2827

2928
[testenv:docs]
3029
use_develop=true

0 commit comments

Comments
 (0)