Files
xmarre-ComfyUI-DiffAid-Patches/.github/workflows/tests.yml
T

45 lines
1.1 KiB
YAML

name: tests
on:
push:
branches: [main]
pull_request:
permissions:
contents: read
jobs:
unit:
runs-on: ubuntu-latest
steps:
- name: Check out custom node
uses: actions/checkout@v4
with:
persist-credentials: false
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.12"
cache: pip
- name: Install test dependencies
run: |
python -m pip install --upgrade pip
python -m pip install torch --index-url https://download.pytorch.org/whl/cpu
python -m pip install pytest ruff
- name: Run Ruff and compileall
run: |
python -m ruff check spectrum_h3_compat.py tests/test_spectrum_h3_compat.py --ignore I001,TRY004
python -m compileall -q nodes.py spectrum_h3_compat.py tests
- name: Run focused MiniMax H3 compatibility tests
run: |
python -m pytest -q \
tests/test_minimax_h3_patch.py \
tests/test_spectrum_h3_compat.py
- name: Run full test suite
run: python -m pytest -q