mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-02-13 06:52:42 +08:00
install python
This commit is contained in:
parent
e09c8a351f
commit
5c08c57250
3
.github/workflows/test-ui.yaml
vendored
3
.github/workflows/test-ui.yaml
vendored
@ -10,6 +10,9 @@ jobs:
|
|||||||
- uses: actions/setup-node@v3
|
- uses: actions/setup-node@v3
|
||||||
with:
|
with:
|
||||||
node-version: 18
|
node-version: 18
|
||||||
|
- uses: actions/setup-python@v4
|
||||||
|
with:
|
||||||
|
python-version: '3.10'
|
||||||
- name: Run Tests
|
- name: Run Tests
|
||||||
run: |
|
run: |
|
||||||
npm install
|
npm install
|
||||||
|
|||||||
@ -54,6 +54,16 @@ async function setup() {
|
|||||||
python = "python";
|
python = "python";
|
||||||
}
|
}
|
||||||
child = spawn(python, ["-s", "ComfyUI/main.py", "--cpu"], { cwd: "../.." });
|
child = spawn(python, ["-s", "ComfyUI/main.py", "--cpu"], { cwd: "../.." });
|
||||||
|
child.on("error", (err) => {
|
||||||
|
console.log(`Server error (${err})`);
|
||||||
|
i = 30;
|
||||||
|
});
|
||||||
|
child.on("exit", (code) => {
|
||||||
|
if (!success) {
|
||||||
|
console.log(`Server exited (${code})`);
|
||||||
|
i = 30;
|
||||||
|
}
|
||||||
|
});
|
||||||
}
|
}
|
||||||
await new Promise((r) => {
|
await new Promise((r) => {
|
||||||
setTimeout(r, 1000);
|
setTimeout(r, 1000);
|
||||||
@ -64,7 +74,7 @@ async function setup() {
|
|||||||
child?.kill();
|
child?.kill();
|
||||||
|
|
||||||
if (!success) {
|
if (!success) {
|
||||||
throw new Error("Waiting for server timed out...");
|
throw new Error("Waiting for server failed...");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user