Skip to content

Commit 2e369c1

Browse files
committed
Use composite action
1 parent ad9ad48 commit 2e369c1

File tree

2 files changed

+3
-104
lines changed

2 files changed

+3
-104
lines changed

.github/workflows/test-browser-exp.yaml

Lines changed: 1 addition & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -12,48 +12,7 @@ jobs:
1212
runs-on: ubuntu-latest
1313
if: github.event.label.name == 'New Browser Test Expectations'
1414
steps:
15-
- name: Checkout ComfyUI
16-
uses: actions/checkout@v4
17-
with:
18-
repository: "comfyanonymous/ComfyUI"
19-
path: "ComfyUI"
20-
ref: master
21-
- name: Checkout ComfyUI_frontend
22-
uses: actions/checkout@v4
23-
with:
24-
repository: "Comfy-Org/ComfyUI_frontend"
25-
path: "ComfyUI_frontend"
26-
ref: ${{ github.head_ref }}
27-
- name: Checkout ComfyUI_devtools
28-
uses: actions/checkout@v4
29-
with:
30-
repository: "Comfy-Org/ComfyUI_devtools"
31-
path: "ComfyUI/custom_nodes/ComfyUI_devtools"
32-
- uses: actions/setup-node@v3
33-
with:
34-
node-version: lts/*
35-
- uses: actions/setup-python@v4
36-
with:
37-
python-version: '3.10'
38-
- name: Install requirements
39-
run: |
40-
python -m pip install --upgrade pip
41-
pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cpu
42-
pip install -r requirements.txt
43-
pip install wait-for-it
44-
working-directory: ComfyUI
45-
- name: Build & Install ComfyUI_frontend
46-
run: |
47-
npm ci
48-
npm run build
49-
rm -rf ../ComfyUI/web/*
50-
mv dist/* ../ComfyUI/web/
51-
working-directory: ComfyUI_frontend
52-
- name: Start ComfyUI server
53-
run: |
54-
python main.py --cpu &
55-
wait-for-it --service 127.0.0.1:8188 -t 600
56-
working-directory: ComfyUI
15+
- uses: Comfy-Org/ComfyUI_frontend_setup_action
5716
- name: Install Playwright Browsers
5817
run: npx playwright install chromium --with-deps
5918
working-directory: ComfyUI_frontend

.github/workflows/test-ui.yaml

Lines changed: 2 additions & 62 deletions
Original file line numberDiff line numberDiff line change
@@ -12,70 +12,10 @@ on:
1212
- 'dev*'
1313

1414
jobs:
15-
setup:
16-
runs-on: ubuntu-latest
17-
steps:
18-
- name: Checkout ComfyUI
19-
uses: actions/checkout@v4
20-
with:
21-
repository: "comfyanonymous/ComfyUI"
22-
path: "ComfyUI"
23-
ref: master
24-
- name: Checkout ComfyUI_frontend
25-
uses: actions/checkout@v4
26-
with:
27-
repository: "Comfy-Org/ComfyUI_frontend"
28-
path: "ComfyUI_frontend"
29-
- name: Checkout ComfyUI_devtools
30-
uses: actions/checkout@v4
31-
with:
32-
repository: "Comfy-Org/ComfyUI_devtools"
33-
path: "ComfyUI/custom_nodes/ComfyUI_devtools"
34-
- name: Get commit message
35-
id: commit-message
36-
run: echo "::set-output name=message::$(git log -1 --pretty=%B)"
37-
working-directory: ComfyUI_frontend
38-
- name: Checkout ComfyUI_examples
39-
uses: actions/checkout@v4
40-
with:
41-
repository: "comfyanonymous/ComfyUI_examples"
42-
path: "ComfyUI_frontend/tests-ui/ComfyUI_examples"
43-
ref: master
44-
- name: Skip CI
45-
if: contains(steps.commit-message.outputs.message, '[skip ci]')
46-
run: echo "Skipping CI as commit contains '[skip ci]'"
47-
continue-on-error: true
48-
working-directory: ComfyUI_frontend
49-
- uses: actions/setup-node@v3
50-
with:
51-
node-version: lts/*
52-
- uses: actions/setup-python@v4
53-
with:
54-
python-version: '3.10'
55-
- name: Install requirements
56-
run: |
57-
python -m pip install --upgrade pip
58-
pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cpu
59-
pip install -r requirements.txt
60-
pip install wait-for-it
61-
working-directory: ComfyUI
62-
- name: Build & Install ComfyUI_frontend
63-
run: |
64-
npm ci
65-
npm run build
66-
rm -rf ../ComfyUI/web/*
67-
mv dist/* ../ComfyUI/web/
68-
working-directory: ComfyUI_frontend
69-
- name: Start ComfyUI server
70-
run: |
71-
python main.py --cpu &
72-
wait-for-it --service 127.0.0.1:8188 -t 600
73-
working-directory: ComfyUI
74-
7515
jest-tests:
76-
needs: setup
7716
runs-on: ubuntu-latest
7817
steps:
18+
- uses: Comfy-Org/ComfyUI_frontend_setup_action
7919
- name: Run Jest tests
8020
run: |
8121
npm run test:generate
@@ -84,9 +24,9 @@ jobs:
8424
working-directory: ComfyUI_frontend
8525

8626
playwright-tests:
87-
needs: setup
8827
runs-on: ubuntu-latest
8928
steps:
29+
- uses: Comfy-Org/ComfyUI_frontend_setup_action
9030
- name: Install Playwright Browsers
9131
run: npx playwright install chromium --with-deps
9232
working-directory: ComfyUI_frontend

0 commit comments

Comments
 (0)