Skip to content

fix: use GITHUB_TOKEN in get_latest_release to avoid rate limits (#428) #920

fix: use GITHUB_TOKEN in get_latest_release to avoid rate limits (#428)

fix: use GITHUB_TOKEN in get_latest_release to avoid rate limits (#428) #920

name: "Test CLI Tool on Multiple Platforms"
on:
push:
branches:
- main
paths:
- "comfy_cli/**"
- "tests/e2e/**"
- "!.github/**"
- "!.coveragerc"
- "!.gitignore"
pull_request:
branches:
- main
paths:
- "comfy_cli/**"
- "tests/e2e/**"
- "!.github/**"
- "!.coveragerc"
- "!.gitignore"
permissions:
contents: read
jobs:
test:
name: "Run Tests on Multiple Platforms"
runs-on: ${{ matrix.os }}
env:
PYTHONIOENCODING: "utf8"
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
python-version: ["3.10"]
steps:
- name: Check out code
uses: actions/checkout@v6
- name: Set up Python
uses: actions/setup-python@v6
with:
python-version: ${{ matrix.python-version }}
- name: Install Dependencies
run: |
python -m pip install --upgrade pip
pip install pytest
pip install -e .
- name: Test CUDA auto-detection (skips if no GPU)
run: |
pytest tests/comfy_cli/test_cuda_detect_real.py -v
- name: Test e2e
env:
PYTHONPATH: ${{ github.workspace }}
TEST_E2E: true
run: |
pytest tests/e2e
- name: Test torch backend compilation
env:
TEST_TORCH_BACKEND: "true"
run: |
pytest tests/uv/test_torch_backend_compile.py -xvs