Skip to content

Commit 59709a0

Browse files
committed
update the test ci
1 parent cc57c55 commit 59709a0

2 files changed

Lines changed: 15 additions & 27 deletions

File tree

.github/workflows/pr-test.yaml

Lines changed: 14 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -55,45 +55,33 @@ jobs:
5555
which python
5656
echo "Installing dependencies"
5757
conda install -c conda-forge gxx=11 gcc=11 libsndfile -y
58-
pip install torch==2.8 torchvision==0.23 --index-url https://download.pytorch.org/whl/cu128
59-
pip install -e ".[ci]"
58+
uv pip install torch==2.8 torchvision==0.23 --index-url https://download.pytorch.org/whl/cu128
59+
uv pip install -e ".[ci]"
6060
- name: Setup ComfyUI
6161
run: |
6262
source $(conda info --base)/etc/profile.d/conda.sh
6363
conda activate test_env || { echo "Failed to activate conda env"; exit 1; }
6464
which python
6565
cd ..
66-
rm -rf ComfyUI
67-
mkdir -p ComfyUI
68-
cd ComfyUI
69-
mkdir -p "${COMFYUI_MODELS_ROOT}"
70-
ln -s "${COMFYUI_MODELS_ROOT}" models
71-
mkdir -p custom_nodes
72-
cd custom_nodes
66+
rm -rf ComfyUI-nunchaku
7367
git clone -b dev https://github.com/mit-han-lab/ComfyUI-nunchaku.git
74-
pip install -r ComfyUI-nunchaku/requirements.txt
75-
git clone https://github.com/Fannovel16/comfyui_controlnet_aux.git
76-
cd comfyui_controlnet_aux
77-
git checkout cc6b232
78-
cd ..
79-
git clone https://github.com/CY-CHENYUE/ComfyUI-InpaintEasy.git
80-
cd ComfyUI-InpaintEasy
81-
pip install -r requirements.txt
82-
git checkout d631a03
68+
cd ComfyUI-nunchaku
69+
uv pip install --torch-backend=auto -e ".[ci]"
8370
cd ..
84-
cd ..
85-
ln -s custom_nodes/ComfyUI-nunchaku/tests tests
86-
pip install -r tests/requirements.txt
87-
python custom_nodes/ComfyUI-nunchaku/scripts/download_models.py
88-
mkdir -p input
89-
python custom_nodes/ComfyUI-nunchaku/scripts/download_inputs.py
71+
rm -rf test-workspace
72+
cd test-workspace
73+
mkdir -p "${COMFYUI_MODELS_ROOT}"
74+
ln -s "${COMFYUI_MODELS_ROOT}" models
75+
ln -s ../ComfyUI-nunchaku/tests tests
76+
ln -s ../ComfyUI-nunchaku/test_data test_data
77+
python ../ComfyUI-nunchaku/scripts/setup_custom_nodes.py
9078
- name: Run ComfyUI tests
9179
run: |
9280
source $(conda info --base)/etc/profile.d/conda.sh
9381
conda activate test_env || { echo "Failed to activate conda env"; exit 1; }
9482
pwd
9583
cd ../ComfyUI
96-
pytest tests/test_workflows.py -x -vv --reruns 2 --reruns-delay 0
84+
pytest tests/test_workflows.py -x -vv --reruns 4 --reruns-delay 0
9785
- name: Run nunchaku tests
9886
run: |
9987
source $(conda info --base)/etc/profile.d/conda.sh
@@ -106,4 +94,4 @@ jobs:
10694
if: always()
10795
run: |
10896
cd ..
109-
rm -rf ComfyUI
97+
rm -rf test-workspace ComfyUI-nunchaku

.github/workflows/run_all_tests.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ def run_all_tests():
2525
failed_tests = []
2626
for test_file in tqdm(test_files):
2727
print(f"Running {test_file} ...")
28-
result = subprocess.run(["pytest", "--reruns", "2", "--reruns-delay", "0", "-vv", "-x", test_file])
28+
result = subprocess.run(["pytest", "--reruns", "4", "--reruns-delay", "0", "-vv", "-x", test_file])
2929
if result.returncode != 0:
3030
print(f"Test failed: {test_file}")
3131
failed_tests.append(test_file)

0 commit comments

Comments
 (0)