Skip to content

Commit c4b38c5

Browse files
committed
[CI] Install deps for backward compatibility check
On re-enabling the backward compatibility check that came with the ComfyUI cookiecutter project, it failed due to missing dependencies (specifically pytorch). So install dependencies before running the action. Choose dependencies from the PR rather than main, in case they are different, in the spirit of testing backward compatibility. Signed-off-by: David Feltell <david.feltell@foundry.com>
1 parent b79f3dc commit c4b38c5

1 file changed

Lines changed: 30 additions & 0 deletions

File tree

.github/workflows/validate.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,34 @@ jobs:
1414
validate:
1515
runs-on: ubuntu-latest
1616
steps:
17+
# We cannot simply run the node-diff action, since it will try
18+
# to import our package without installing dependencies. So we
19+
# install dependencies ourselves first.
20+
21+
- name: Set up Python
22+
uses: actions/setup-python@v5
23+
with:
24+
python-version: "3.10" # Same as comfy-org/node-diff
25+
26+
- name: Checkout PR
27+
uses: actions/checkout@v4
28+
with:
29+
path: pr_repo # Same as comfy-org/node-diff
30+
31+
- uses: actions/checkout@v4
32+
name: Checkout ComfyUI
33+
with:
34+
repository: comfyanonymous/ComfyUI
35+
ref: v0.3.57
36+
path: comfyui
37+
38+
- name: Install dependencies
39+
shell: bash
40+
run: |
41+
python -m pip install --upgrade pip
42+
pip install ./pr_repo
43+
pip install -r ./comfyui/requirements.txt
44+
1745
- uses: comfy-org/node-diff@main
46+
env:
47+
PYTHONPATH: ${{ github.workspace }}/comfyui

0 commit comments

Comments
 (0)