feat(tracking): honor DO_NOT_TRACK and COMFY_NO_TELEMETRY env vars (#… #808
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: "Test CLI Tool on GPU runners" | |
| on: | |
| push: | |
| branches: | |
| - main | |
| paths: | |
| - "comfy_cli/**" | |
| - "!comfy_cli/test_**" | |
| - "!.github/**" | |
| - "!tests/**" | |
| - "!.coveragerc" | |
| - "!.gitignore" | |
| pull_request: | |
| branches: | |
| - main | |
| paths: | |
| - "comfy_cli/**" | |
| - "!comfy_cli/test_**" | |
| - "!.github/**" | |
| - "!tests/**" | |
| - "!.coveragerc" | |
| - "!.gitignore" | |
| permissions: | |
| contents: read | |
| jobs: | |
| test-cli-gpu: | |
| name: "Run Tests on GPU Runners" | |
| runs-on: | |
| group: gpu-runners | |
| labels: ${{ matrix.os }}-x64-gpu # | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: [linux] | |
| steps: | |
| - name: Check out code | |
| uses: actions/checkout@v6 | |
| - name: Check Nvidia | |
| run: | | |
| nvidia-smi | |
| - name: Set up Python | |
| uses: actions/setup-python@v6 | |
| with: | |
| python-version: 3.12 | |
| - name: Check disk space | |
| run: | | |
| df -h | |
| - name: Install Dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install pytest | |
| pip install -e . | |
| - name: Test CUDA auto-detection (real hardware) | |
| run: | | |
| pytest tests/comfy_cli/test_cuda_detect_real.py -v | |
| - name: Test e2e | |
| id: test-e2e | |
| env: | |
| PYTHONPATH: ${{ github.workspace }} | |
| TEST_E2E: true | |
| TEST_E2E_COMFY_INSTALL_FLAGS: --nvidia | |
| TEST_E2E_COMFY_LAUNCH_FLAGS_EXTRA: "" | |
| run: | | |
| pytest tests/e2e | |
| - name: Retry test e2e but without gpu | |
| if: ${{ failure() && steps.test-e2e.conclusion == 'failure' }} | |
| env: | |
| PYTHONPATH: ${{ github.workspace }} | |
| TEST_E2E: true | |
| run: | | |
| pytest tests/e2e |