name: CI on: push: branches: [main] pull_request: jobs: lint-and-test: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - name: Set up Python uses: actions/setup-python@v5 with: python-version: "3.11" - name: Cache pip uses: actions/cache@v4 with: path: ~/.cache/pip key: pip-${{ runner.os }}-${{ hashFiles('requirements.txt') }} - name: Install run: | python -m pip install -U pip pip install ruff pytest pytest-mock pillow numpy gradio==5.50.0 safetensors opencv-python-headless - name: Ruff format run: ruff format --check . - name: Ruff lint run: ruff check . - name: Pytest (L1+L2 — no GPU) run: pytest -q --tb=short env: # Skip tests that need diffsynth / realesrgan / controlnet_aux installed PYTEST_DISABLE_PLUGIN_AUTOLOAD: 1