Three finishing nodes that make generated images read more like photographs: Lens (vignette and lateral colour fringes), Halation (light spreading from bright areas, neutral to film red-orange) and Film Grain (strongest in the midtones, mostly luminance, own grain size, seeded). Tests stub comfy_api; the publish workflow releases to the Comfy Registry after they pass. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
40 lines
1.1 KiB
YAML
40 lines
1.1 KiB
YAML
name: Tests
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
pull_request:
|
|
# The publish workflow runs these first, so a failing build is never released.
|
|
workflow_call:
|
|
|
|
jobs:
|
|
pytest:
|
|
name: pytest (Python ${{ matrix.python-version }})
|
|
runs-on: ubuntu-24.04
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
# 3.10 is the declared floor; 3.13 is what the ComfyUI portable build ships.
|
|
python-version: ["3.10", "3.13"]
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Set up Python
|
|
uses: actions/setup-python@v5
|
|
with:
|
|
python-version: ${{ matrix.python-version }}
|
|
cache: pip
|
|
|
|
- name: Install dependencies
|
|
# torch arrives with ComfyUI at runtime; the CPU build is enough for the tests.
|
|
# comfy_api is stubbed in tests/conftest.py.
|
|
run: |
|
|
python -m pip install --upgrade pip
|
|
pip install torch --index-url https://download.pytorch.org/whl/cpu
|
|
pip install pytest typing_extensions
|
|
|
|
- name: Run tests
|
|
run: python -m pytest -q
|