Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,30 +39,30 @@ jobs:
- name: Check out code
uses: actions/checkout@v7

- name: Set up Python
uses: actions/setup-python@v6
- name: Install uv
uses: astral-sh/setup-uv@11f9893b081a58869d3b5fccaea48c9e9e46f990 # v8.3.2
with:
enable-cache: true
python-version: ${{ matrix.python-version }}

# `--locked` fails the job if uv.lock has drifted from pyproject.toml, so test
# dependency versions can only change via a deliberate lockfile bump.
- name: Install Dependencies
run: |
python -m pip install --upgrade pip
pip install pytest
pip install -e .
run: uv sync --extra dev --locked

- name: Test CUDA auto-detection (skips if no GPU)
run: |
pytest tests/comfy_cli/test_cuda_detect_real.py -v
uv run --locked --extra dev pytest tests/comfy_cli/test_cuda_detect_real.py -v

- name: Test e2e
env:
PYTHONPATH: ${{ github.workspace }}
TEST_E2E: true
run: |
pytest tests/e2e
uv run --locked --extra dev pytest tests/e2e

- name: Test torch backend compilation
env:
TEST_TORCH_BACKEND: "true"
run: |
pytest tests/uv/test_torch_backend_compile.py -xvs
uv run --locked --extra dev pytest tests/uv/test_torch_backend_compile.py -xvs
15 changes: 7 additions & 8 deletions .github/workflows/pytest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,22 +20,21 @@ jobs:
steps:
- uses: actions/checkout@v7

- name: Set up Python
uses: actions/setup-python@v6
- name: Install uv
uses: astral-sh/setup-uv@11f9893b081a58869d3b5fccaea48c9e9e46f990 # v8.3.2
with:
enable-cache: true
python-version: '3.10' # Follow the min version in pyproject.toml

# `--locked` fails the job if uv.lock has drifted from pyproject.toml, so test
# dependency versions can only change via a deliberate lockfile bump.
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pytest pytest-cov jsonschema
pip install -e .
run: uv sync --extra dev --locked

- name: Run tests
env:
PYTHONPATH: ${{ github.workspace }}
run: |
pytest --cov=comfy_cli --cov-report=xml .
run: uv run --locked --extra dev pytest --cov=comfy_cli --cov-report=xml .

- name: Upload coverage to Codecov
uses: codecov/codecov-action@fb8b3582c8e4def4969c97caa2f19720cb33a72f # v6.0.2
Expand Down
Loading
Loading