fix: use --torch-backend instead of --extra-index-url for dep compilation #282
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: "Mac Specific Commands" | |
| on: | |
| pull_request: | |
| branches: | |
| - main | |
| paths: | |
| - comfy_cli/** | |
| permissions: | |
| contents: read | |
| jobs: | |
| test: | |
| runs-on: macos-latest | |
| env: | |
| PYTHONIOENCODING: "utf8" | |
| steps: | |
| - name: Check out code | |
| uses: actions/checkout@v6 | |
| - name: Set up Python | |
| uses: actions/setup-python@v6 | |
| with: | |
| python-version: 3.12 | |
| - name: Install Dependencies | |
| run: | | |
| python -m venv venv | |
| source venv/bin/activate | |
| python -m pip install --upgrade pip | |
| pip install pytest | |
| pip install -e . | |
| - name: Test torch backend compilation (mac) | |
| run: | | |
| source venv/bin/activate | |
| TEST_TORCH_BACKEND=true pytest tests/uv/test_torch_backend_compile.py::test_compile_mac -xvs | |
| - name: Install and launch ComfyUI | |
| run: | | |
| source venv/bin/activate | |
| comfy --skip-prompt --workspace ./ComfyUI install --fast-deps --m-series --skip-manager | |
| comfy --here launch -- --cpu --quick-test-for-ci |