Commit 1e172237 authored by Muyang Li's avatar Muyang Li
Browse files

chore: use vars instead of secrets for test ci

parent c7bc61bf
......@@ -85,8 +85,8 @@ jobs:
yes | comfy --here install --nvidia --skip-torch-or-directml --version 0.3.44
cd ComfyUI
rm -r models
mkdir -p ${{ secrets.COMFYUI_MODELS_ROOT }}
ln -s ${{ secrets.COMFYUI_MODELS_ROOT }} models
mkdir -p ${{ vars.COMFYUI_MODELS_ROOT }}
ln -s ${{ vars.COMFYUI_MODELS_ROOT }} models
cd custom_nodes
git clone -b dev https://github.com/mit-han-lab/ComfyUI-nunchaku.git
cd ..
......@@ -95,8 +95,8 @@ jobs:
comfy node install comfyui-inpainteasy
cp -r custom_nodes/ComfyUI-nunchaku/tests nunchaku_tests
pip install -r nunchaku_tests/requirements.txt
HF_TOKEN=${{ secrets.HF_TOKEN }} python custom_nodes/ComfyUI-nunchaku/scripts/download_models.py
HF_TOKEN=${{ secrets.HF_TOKEN }} python custom_nodes/ComfyUI-nunchaku/scripts/download_test_data.py
HF_TOKEN=${{ vars.HF_TOKEN }} python custom_nodes/ComfyUI-nunchaku/scripts/download_models.py
HF_TOKEN=${{ vars.HF_TOKEN }} python custom_nodes/ComfyUI-nunchaku/scripts/download_test_data.py
- name: Run ComfyUI tests
run: |
source $(conda info --base)/etc/profile.d/conda.sh
......@@ -110,8 +110,8 @@ jobs:
source $(conda info --base)/etc/profile.d/conda.sh
conda activate test_env || { echo "Failed to activate conda env"; exit 1; }
which python
NUNCHAKU_TEST_CACHE_ROOT=${{ secrets.NUNCHAKU_TEST_CACHE_ROOT }} HF_TOKEN=${{ secrets.HF_TOKEN }} pytest -v tests/flux/test_flux_examples.py
NUNCHAKU_TEST_CACHE_ROOT=${{ secrets.NUNCHAKU_TEST_CACHE_ROOT }} HF_TOKEN=${{ secrets.HF_TOKEN }} python .github/workflows/run_all_tests.py
NUNCHAKU_TEST_CACHE_ROOT=${{ vars.NUNCHAKU_TEST_CACHE_ROOT }} HF_TOKEN=${{ vars.HF_TOKEN }} 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
- name: clean up
if: always()
run: |
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment