Skip to content

Commit 512dc8f

Browse files
committed
[CI] Update CI config to work with project
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 <[email protected]>
1 parent 95cef93 commit 512dc8f

File tree

1 file changed

+18
-8
lines changed

1 file changed

+18
-8
lines changed

.github/workflows/build-pipeline.yml

Lines changed: 18 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,21 +6,28 @@ name: CI build
66

77
on:
88
pull_request:
9-
branches:
10-
- master
11-
- main
9+
workflow_dispatch:
10+
1211
jobs:
13-
build:
12+
test:
13+
name: Test and Lint
1414
runs-on: ${{ matrix.os }}
1515
env:
1616
PYTHONIOENCODING: "utf8"
1717
strategy:
1818
matrix:
1919
os: [ ubuntu-latest ]
20-
python-version: [ "3.12" ]
20+
python-version: [ "3.11" ]
2121

2222
steps:
2323
- uses: actions/checkout@v4
24+
25+
- uses: actions/checkout@v4
26+
name: Checkout ComfyUI
27+
with:
28+
repository: comfyanonymous/ComfyUI
29+
ref: v0.3.57
30+
path: comfyui
2431
- name: Set up Python
2532
uses: actions/setup-python@v5
2633
with:
@@ -29,9 +36,12 @@ jobs:
2936
run: |
3037
python -m pip install --upgrade pip
3138
pip install .[dev]
32-
- name: Run Linting
33-
run: |
34-
ruff check .
39+
pip install -r comfyui/requirements.txt
3540
- name: Run Tests
3641
run: |
3742
pytest tests/
43+
env:
44+
PYTHONPATH: ./comfyui
45+
- name: Run Linting
46+
run: |
47+
ruff check .

0 commit comments

Comments
 (0)