Skip to content

Commit fcd0897

Browse files
author
Agent
committed
Add test coverage measurement and CodeCov upload to CI
- Add --cov-report=xml to tox.ini so pytest-cov emits coverage.xml - Add codecov/codecov-action@v5 step to gating.yaml to upload coverage results to CodeCov using OIDC authentication Closes #76 Generated-By: OpenCode (google-vertex-anthropic/claude-sonnet-4-6@default)
1 parent 6552ee2 commit fcd0897

2 files changed

Lines changed: 7 additions & 0 deletions

File tree

.github/workflows/gating.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,3 +35,9 @@ jobs:
3535
run: tox -e docs
3636
- name: tests
3737
run: tox -e py3
38+
- uses: codecov/codecov-action@v5
39+
with:
40+
use_oidc: true
41+
flags: unit-tests
42+
files: ./coverage.xml
43+
fail_ci_if_error: false

tox.ini

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ commands =
1919
-W "ignore:inspect.getargspec:DeprecationWarning" \
2020
-W "ignore:This method will be removed in future versions. Use 'parser.read_file()':DeprecationWarning" \
2121
-W "ignore:Use .persist_selectable:DeprecationWarning" \
22+
--cov-report=xml \
2223
{posargs}
2324
sitepackages = True
2425

0 commit comments

Comments
 (0)