Pin the Python version to 3.11, since OpenAssetIO is currently unavailable on PyPI for 3.12 (i.e. only currently supports VFX Reference Platform CY23/24). Checkout ComfyUI and add to PYTHONPATH for tests, since we make use of its internal utility libraries. We also make use of some of the dependencies of ComfyUI (e.g. numpy), so install ComfyUI's dependencies into the environment. Signed-off-by: David Feltell <david.feltell@foundry.com>
48 lines
1.0 KiB
YAML
48 lines
1.0 KiB
YAML
# openassetio-comfyui
|
|
# Copyright (c) 2025 The Foundry Visionmongers Ltd
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
name: CI build
|
|
|
|
on:
|
|
pull_request:
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
test:
|
|
name: Test and Lint
|
|
runs-on: ${{ matrix.os }}
|
|
env:
|
|
PYTHONIOENCODING: "utf8"
|
|
strategy:
|
|
matrix:
|
|
os: [ ubuntu-latest ]
|
|
python-version: [ "3.11" ]
|
|
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- uses: actions/checkout@v4
|
|
name: Checkout ComfyUI
|
|
with:
|
|
repository: comfyanonymous/ComfyUI
|
|
ref: v0.3.57
|
|
path: comfyui
|
|
- name: Set up Python
|
|
uses: actions/setup-python@v5
|
|
with:
|
|
python-version: ${{ matrix.python-version }}
|
|
- name: Install dependencies
|
|
run: |
|
|
python -m pip install --upgrade pip
|
|
pip install .[dev]
|
|
pip install -r comfyui/requirements.txt
|
|
- name: Run Tests
|
|
run: |
|
|
pytest tests/
|
|
env:
|
|
PYTHONPATH: ./comfyui
|
|
- name: Run Linting
|
|
run: |
|
|
ruff check .
|