mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-02-10 21:42:37 +08:00
install deps
This commit is contained in:
parent
5c08c57250
commit
b3d2c6a57e
4
.github/workflows/test-ui.yaml
vendored
4
.github/workflows/test-ui.yaml
vendored
@ -13,6 +13,10 @@ jobs:
|
||||
- uses: actions/setup-python@v4
|
||||
with:
|
||||
python-version: '3.10'
|
||||
- name: Install requirements
|
||||
run: |
|
||||
python -m pip install --upgrade pip
|
||||
pip install -r requirements.txt
|
||||
- name: Run Tests
|
||||
run: |
|
||||
npm install
|
||||
|
||||
@ -50,10 +50,14 @@ async function setup() {
|
||||
console.log("Starting ComfyUI server...");
|
||||
|
||||
let python = resolve("../../python_embeded/python.exe");
|
||||
if (!existsSync(python)) {
|
||||
let args;
|
||||
if (existsSync(python)) {
|
||||
args = ["-s", "ComfyUI/main.py"];
|
||||
} else {
|
||||
python = "python";
|
||||
args = ["main.py"];
|
||||
}
|
||||
child = spawn(python, ["-s", "ComfyUI/main.py", "--cpu"], { cwd: "../.." });
|
||||
child = spawn(python, [...args, "--cpu"], { cwd: "../.." });
|
||||
child.on("error", (err) => {
|
||||
console.log(`Server error (${err})`);
|
||||
i = 30;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user