38 lines
1.1 KiB
YAML
38 lines
1.1 KiB
YAML
name: CI
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
pull_request:
|
|
branches: [main]
|
|
|
|
jobs:
|
|
test:
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
python-version: ["3.10", "3.11", "3.12"]
|
|
steps:
|
|
- uses: actions/checkout@v7
|
|
- uses: actions/setup-python@v7
|
|
with:
|
|
python-version: ${{ matrix.python-version }}
|
|
- name: Install package and verification dependencies
|
|
run: |
|
|
python -m pip install --upgrade pip
|
|
pip install -e ".[test]"
|
|
pip install "ruff>=0.16"
|
|
pip install --force-reinstall --no-deps "hicache-pp @ git+https://github.com/Archerkattri/hicache-plus-plus@master"
|
|
- name: Compile Python sources
|
|
run: python -m compileall -q .
|
|
- name: Run registry security style checks
|
|
run: python -m ruff check --select E702 .
|
|
- name: Verify ComfyUI node-pack registration and schema
|
|
run: python -m pytest -q tests/test_nodes.py
|
|
- name: Build wheel from clean metadata
|
|
run: python -m pip wheel . --no-deps --wheel-dir dist
|