|
12 | 12 | - 'dev*'
|
13 | 13 |
|
14 | 14 | 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 |
| - |
75 | 15 | jest-tests:
|
76 |
| - needs: setup |
77 | 16 | runs-on: ubuntu-latest
|
78 | 17 | steps:
|
| 18 | + - uses: Comfy-Org/ComfyUI_frontend_setup_action |
79 | 19 | - name: Run Jest tests
|
80 | 20 | run: |
|
81 | 21 | npm run test:generate
|
|
84 | 24 | working-directory: ComfyUI_frontend
|
85 | 25 |
|
86 | 26 | playwright-tests:
|
87 |
| - needs: setup |
88 | 27 | runs-on: ubuntu-latest
|
89 | 28 | steps:
|
| 29 | + - uses: Comfy-Org/ComfyUI_frontend_setup_action |
90 | 30 | - name: Install Playwright Browsers
|
91 | 31 | run: npx playwright install chromium --with-deps
|
92 | 32 | working-directory: ComfyUI_frontend
|
|
0 commit comments