Skip to content

Commit

Permalink
Make xml coverage data for codecov
Browse files Browse the repository at this point in the history
  • Loading branch information
linuxdaemon committed Apr 2, 2024
1 parent 64925f5 commit 07e8b3b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/python-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
run: pip install --user --upgrade hatch

- name: Test with pytest
run: hatch run test-cov
run: hatch run cov-report
env:
PYTHONDEVMODE: 1

Expand Down
6 changes: 5 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,11 @@ dependencies = [
[tool.hatch.envs.default.scripts]
test = "pytest"
test-cov = "coverage run -pm pytest"
cov-report = ["- coverage combine", "coverage report --show-missing"]
cov-report = [
"- coverage combine",
"coverage xml",
"coverage report --show-missing",
]
cov = ["test-cov", "cov-report"]
cov-all = ["hatch run testall:test-cov", "cov-report"]

Expand Down

0 comments on commit 07e8b3b

Please sign in to comment.