Skip to content

Commit 50ed287

Browse files
authored
Add full CI test matrix GitHub Workflow (comfyanonymous#4274)
automatically runs a matrix of full GPU-enabled tests on all new commits to the ComfyUI master branch
1 parent 66d4233 commit 50ed287

File tree

1 file changed

+95
-0
lines changed

1 file changed

+95
-0
lines changed

.github/workflows/test-ci.yml

Lines changed: 95 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,95 @@
1+
# This is the GitHub Workflow that drives automatic full-GPU-enabled tests of all new commits to the master branch of ComfyUI
2+
# Results are reported as checkmarks on the commits, as well as onto https://ci.comfy.org/
3+
name: Full Comfy CI Workflow Runs
4+
on:
5+
push:
6+
branches:
7+
- master
8+
paths-ignore:
9+
- 'app/**'
10+
- 'input/**'
11+
- 'output/**'
12+
- 'notebooks/**'
13+
- 'script_examples/**'
14+
- '.github/**'
15+
- 'web/**'
16+
workflow_dispatch:
17+
18+
jobs:
19+
test-stable:
20+
strategy:
21+
fail-fast: false
22+
matrix:
23+
os: [macos, linux, windows]
24+
python_version: ["3.9", "3.10", "3.11", "3.12"]
25+
cuda_version: ["12.1"]
26+
torch_version: ["stable"]
27+
include:
28+
- os: macos
29+
runner_label: [self-hosted, macOS]
30+
flags: "--use-pytorch-cross-attention"
31+
- os: linux
32+
runner_label: [self-hosted, Linux]
33+
flags: ""
34+
- os: windows
35+
runner_label: [self-hosted, win]
36+
flags: ""
37+
runs-on: ${{ matrix.runner_label }}
38+
steps:
39+
- name: Test Workflows
40+
uses: comfy-org/comfy-action@main
41+
with:
42+
os: ${{ matrix.os }}
43+
python_version: ${{ matrix.python_version }}
44+
torch_version: ${{ matrix.torch_version }}
45+
google_credentials: ${{ secrets.GCS_SERVICE_ACCOUNT_JSON }}
46+
comfyui_flags: ${{ matrix.flags }}
47+
48+
test-win-nightly:
49+
strategy:
50+
fail-fast: true
51+
matrix:
52+
os: [windows]
53+
python_version: ["3.9", "3.10", "3.11", "3.12"]
54+
cuda_version: ["12.1"]
55+
torch_version: ["nightly"]
56+
include:
57+
- os: windows
58+
runner_label: [self-hosted, win]
59+
flags: ""
60+
runs-on: ${{ matrix.runner_label }}
61+
steps:
62+
- name: Test Workflows
63+
uses: comfy-org/comfy-action@main
64+
with:
65+
os: ${{ matrix.os }}
66+
python_version: ${{ matrix.python_version }}
67+
torch_version: ${{ matrix.torch_version }}
68+
google_credentials: ${{ secrets.GCS_SERVICE_ACCOUNT_JSON }}
69+
comfyui_flags: ${{ matrix.flags }}
70+
71+
test-unix-nightly:
72+
strategy:
73+
fail-fast: false
74+
matrix:
75+
os: [macos, linux]
76+
python_version: ["3.11"]
77+
cuda_version: ["12.1"]
78+
torch_version: ["nightly"]
79+
include:
80+
- os: macos
81+
runner_label: [self-hosted, macOS]
82+
flags: "--use-pytorch-cross-attention"
83+
- os: linux
84+
runner_label: [self-hosted, Linux]
85+
flags: ""
86+
runs-on: ${{ matrix.runner_label }}
87+
steps:
88+
- name: Test Workflows
89+
uses: comfy-org/comfy-action@main
90+
with:
91+
os: ${{ matrix.os }}
92+
python_version: ${{ matrix.python_version }}
93+
torch_version: ${{ matrix.torch_version }}
94+
google_credentials: ${{ secrets.GCS_SERVICE_ACCOUNT_JSON }}
95+
comfyui_flags: ${{ matrix.flags }}

0 commit comments

Comments
 (0)