Skip to content

Commit 2cf0ebc

Browse files
committed
Generate xml coverage.
1 parent 8f3323d commit 2cf0ebc

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

.github/workflows/pytest.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
env:
3131
PYTHONPATH: ${{ github.workspace }}
3232
run: |
33-
pytest --cov
33+
pytest --cov --cov-report=xml
3434
3535
- name: Upload coverage to Codecov
3636
uses: codecov/codecov-action@v4

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,3 +60,4 @@ cpython*
6060
requirements.compiled
6161
override.txt
6262
.coverage
63+
coverage.xml

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ dependencies = [
4646
]
4747

4848
[project.optional-dependencies]
49-
dev = ["pre-commit", "pytest", "ruff"]
49+
dev = ["pre-commit", "pytest", "ruff", "pytest-cov"]
5050

5151
[project.scripts]
5252
comfy = "comfy_cli.__main__:main"

0 commit comments

Comments
 (0)