Files
Gökay Aydoğan a9e20b7764 Depth Toolkit v3: conditioning, geometry, parallax, and live 3D (#14)
* feat: transform depth nodes into a complete v3 depth toolkit

* fix(ci): validate metadata on Python 3.10
2026-08-01 09:55:09 +03:00

72 lines
2.3 KiB
YAML

name: CI
on:
pull_request:
push:
branches: [main]
permissions:
contents: read
jobs:
python:
name: Python ${{ matrix.python }} / ${{ matrix.os }}
runs-on: ${{ matrix.os }}
timeout-minutes: 20
strategy:
fail-fast: false
matrix:
include:
- os: ubuntu-latest
python: "3.10"
- os: ubuntu-latest
python: "3.13"
- os: windows-latest
python: "3.12"
- os: macos-latest
python: "3.12"
steps:
- uses: actions/checkout@v6
- uses: actions/setup-python@v6
with:
python-version: ${{ matrix.python }}
cache: pip
- name: Install CPU PyTorch
if: runner.os != 'macOS'
run: python -m pip install --disable-pip-version-check --index-url https://download.pytorch.org/whl/cpu torch
- name: Install CPU PyTorch on macOS
if: runner.os == 'macOS'
run: python -m pip install --disable-pip-version-check torch
- name: Install test dependencies
run: python -m pip install --disable-pip-version-check -r requirements.txt pytest tomli
- name: Compile Python
run: python -m compileall -q .
- name: Test
run: pytest -q
- name: Validate Registry metadata
run: python -c "import pathlib,tomli; d=tomli.loads(pathlib.Path('pyproject.toml').read_text('utf-8')); assert d['project']['version']=='3.0.0'; assert d['tool']['comfy']['PublisherId']=='gokayfem'"
frontend:
name: Frontend and examples
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- uses: actions/checkout@v6
- name: Check browser modules
run: |
node --input-type=module --check < web/viewer_extension_3_0.js
node --check web/js/threeVisualizer.mjs
node --check web/vendor/three.module.min.mjs
node --check web/vendor/three.core.min.mjs
- name: Reject runtime CDN imports
run: |
if grep -R -n -E 'https?://|@latest' web --include='*.html' --include='*.js' --include='*.mjs' --exclude-dir=vendor; then
echo 'Runtime remote dependency found.' >&2
exit 1
fi
- name: Validate example JSON
run: |
for file in examples/workflows/*.json examples/api/*.json; do
python -m json.tool "$file" >/dev/null
done