Skip to content

Commit 1b250be

Browse files
authored
Generate xml coverage. (#227)
* Generate xml coverage. * Remove coverage.xml * Specific pytest project. * Don't run for changes in most files. * Test everything.
1 parent 2d05545 commit 1b250be

File tree

6 files changed

+7
-533
lines changed

6 files changed

+7
-533
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=comfy_cli --cov-report=xml .
3434
3535
- name: Upload coverage to Codecov
3636
uses: codecov/codecov-action@v4

.github/workflows/test-mac.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ on:
33
pull_request:
44
branches:
55
- main
6+
paths:
7+
- comfy_cli/**
68

79
jobs:
810
test:
@@ -24,7 +26,6 @@ jobs:
2426
python -m venv venv
2527
source venv/bin/activate
2628
python -m pip install --upgrade pip
27-
pip install pytest
2829
pip install -e .
2930
comfy --skip-prompt --workspace ./ComfyUI install --fast-deps --m-series --skip-manager
3031
comfy --workspace ./ComfyUI standalone --platform macos

.github/workflows/test-windows.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ on:
33
pull_request:
44
branches:
55
- main
6+
paths:
7+
- comfy_cli/**
68

79
jobs:
810
test:

.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)