Skip to content

Commit 7786ea9

Browse files
committed
CI coverage report in xml
1 parent ddee449 commit 7786ea9

File tree

4 files changed

+52
-51
lines changed

4 files changed

+52
-51
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
CMD=doctest pixi run doc
3333
- name: Test coverage
3434
run: |
35-
pixi run test-coverage
35+
pixi run test-coverage-xml
3636
- name: Upload coverage reports to Codecov
3737
uses: codecov/[email protected]
3838
with:

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ wheels/
2121
# Used by pytest, pytest-cov
2222
.pytest_cache/
2323
.coverage
24-
cov_html/
24+
*.xml
2525

2626
# Used by mypy
2727
.mypy_cache/

pixi.lock

Lines changed: 49 additions & 49 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ scikit-learn = ">=1.5.0,<1.6"
7474
[tool.pixi.feature.test.tasks]
7575
test = { cmd = "pytest", cwd = "tests" }
7676
test-coverage = { cmd = "rm -rf coverage .coverage && pytest tests --showlocals -v --cov=$PACKAGE tests/ --cov-report=html:coverage", env = { PACKAGE = "fastcan" } }
77+
test-coverage-xml = { cmd = "rm -rf cov.xml .coverage && pytest tests --showlocals -v --cov=$PACKAGE tests/ --cov-report=xml:cov.xml", env = { PACKAGE = "fastcan" } }
7778

7879
[tool.pixi.feature.build.tasks]
7980
build-wheel = "python -m build --no-isolation --wheel ."

0 commit comments

Comments
 (0)