Skip to content

Commit

Permalink
Generate xml coverage. (#227)
Browse files Browse the repository at this point in the history
* Generate xml coverage.

* Remove coverage.xml

* Specific pytest project.

* Don't run for changes in most files.

* Test everything.
  • Loading branch information
robinjhuang authored Dec 31, 2024
1 parent 2d05545 commit 1b250be
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 533 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/pytest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
env:
PYTHONPATH: ${{ github.workspace }}
run: |
pytest --cov
pytest --cov=comfy_cli --cov-report=xml .
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/test-mac.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ on:
pull_request:
branches:
- main
paths:
- comfy_cli/**

jobs:
test:
Expand All @@ -24,7 +26,6 @@ jobs:
python -m venv venv
source venv/bin/activate
python -m pip install --upgrade pip
pip install pytest
pip install -e .
comfy --skip-prompt --workspace ./ComfyUI install --fast-deps --m-series --skip-manager
comfy --workspace ./ComfyUI standalone --platform macos
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/test-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ on:
pull_request:
branches:
- main
paths:
- comfy_cli/**

jobs:
test:
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -60,3 +60,4 @@ cpython*
requirements.compiled
override.txt
.coverage
coverage.xml
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ dependencies = [
]

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

[project.scripts]
comfy = "comfy_cli.__main__:main"
Expand Down
Loading

0 comments on commit 1b250be

Please sign in to comment.