name: Tests on: push: branches: - main pull_request: permissions: contents: read jobs: pytest: name: pytest (Python ${{ matrix.python-version }}) runs-on: ubuntu-latest strategy: fail-fast: false matrix: python-version: ["3.10", "3.11", "3.12"] steps: - name: Check out code # actions/checkout v7.0.1 (node24), pinned by SHA for supply-chain safety. uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 - name: Set up Python # actions/setup-python v7.0.0 (node24) uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 with: python-version: ${{ matrix.python-version }} cache: pip cache-dependency-path: requirements-ci.txt - name: Install test dependencies # comfy_api is mocked in conftest.py, so a full ComfyUI install isn't needed. run: python -m pip install --upgrade pip -r requirements-ci.txt - name: Lint run: python -m ruff check . - name: Run tests run: python -m pytest -q