Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
fengzch-das
nunchaku
Commits
eeabaa29
Commit
eeabaa29
authored
Jul 27, 2025
by
Muyang Li
Browse files
chore: fix the github variables
parent
1e172237
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
6 deletions
+10
-6
.github/workflows/pr-test.yaml
.github/workflows/pr-test.yaml
+10
-6
No files found.
.github/workflows/pr-test.yaml
View file @
eeabaa29
...
@@ -30,6 +30,10 @@ jobs:
...
@@ -30,6 +30,10 @@ jobs:
if
:
|
if
:
|
(github.event_name == 'pull_request' && !github.event.pull_request.draft) ||
(github.event_name == 'pull_request' && !github.event.pull_request.draft) ||
(github.event_name == 'workflow_dispatch')
(github.event_name == 'workflow_dispatch')
env
:
COMFYUI_MODELS_ROOT
:
${{ vars.COMFYUI_MODELS_ROOT }}
NUNCHAKU_TEST_CACHE_ROOT
:
${{ vars.NUNCHAKU_TEST_CACHE_ROOT }}
HF_TOKEN
:
${{ vars.HF_TOKEN }}
steps
:
steps
:
-
name
:
Determine ref
-
name
:
Determine ref
id
:
set-ref
id
:
set-ref
...
@@ -85,8 +89,8 @@ jobs:
...
@@ -85,8 +89,8 @@ jobs:
yes | comfy --here install --nvidia --skip-torch-or-directml --version 0.3.44
yes | comfy --here install --nvidia --skip-torch-or-directml --version 0.3.44
cd ComfyUI
cd ComfyUI
rm -r models
rm -r models
mkdir -p $
{{ vars.
COMFYUI_MODELS_ROOT
}}
mkdir -p $COMFYUI_MODELS_ROOT
ln -s $
{{ vars.
COMFYUI_MODELS_ROOT
}}
models
ln -s $COMFYUI_MODELS_ROOT models
cd custom_nodes
cd custom_nodes
git clone -b dev https://github.com/mit-han-lab/ComfyUI-nunchaku.git
git clone -b dev https://github.com/mit-han-lab/ComfyUI-nunchaku.git
cd ..
cd ..
...
@@ -95,8 +99,8 @@ jobs:
...
@@ -95,8 +99,8 @@ jobs:
comfy node install comfyui-inpainteasy
comfy node install comfyui-inpainteasy
cp -r custom_nodes/ComfyUI-nunchaku/tests nunchaku_tests
cp -r custom_nodes/ComfyUI-nunchaku/tests nunchaku_tests
pip install -r nunchaku_tests/requirements.txt
pip install -r nunchaku_tests/requirements.txt
HF_TOKEN=${{ vars.HF_TOKEN }}
python custom_nodes/ComfyUI-nunchaku/scripts/download_models.py
python custom_nodes/ComfyUI-nunchaku/scripts/download_models.py
HF_TOKEN=${{ vars.HF_TOKEN }}
python custom_nodes/ComfyUI-nunchaku/scripts/download_test_data.py
python custom_nodes/ComfyUI-nunchaku/scripts/download_test_data.py
-
name
:
Run ComfyUI tests
-
name
:
Run ComfyUI tests
run
:
|
run
:
|
source $(conda info --base)/etc/profile.d/conda.sh
source $(conda info --base)/etc/profile.d/conda.sh
...
@@ -110,8 +114,8 @@ jobs:
...
@@ -110,8 +114,8 @@ jobs:
source $(conda info --base)/etc/profile.d/conda.sh
source $(conda info --base)/etc/profile.d/conda.sh
conda activate test_env || { echo "Failed to activate conda env"; exit 1; }
conda activate test_env || { echo "Failed to activate conda env"; exit 1; }
which python
which python
NUNCHAKU_TEST_CACHE_ROOT=${{ vars.NUNCHAKU_TEST_CACHE_ROOT }} HF_TOKEN=${{ vars.HF_TOKEN }}
pytest -v tests/flux/test_flux_examples.py
pytest -v tests/flux/test_flux_examples.py
NUNCHAKU_TEST_CACHE_ROOT=${{ vars.NUNCHAKU_TEST_CACHE_ROOT }} HF_TOKEN=${{ vars.HF_TOKEN }}
python .github/workflows/run_all_tests.py
python .github/workflows/run_all_tests.py
-
name
:
clean up
-
name
:
clean up
if
:
always()
if
:
always()
run
:
|
run
:
|
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment