Add extra_dependencies as a matrix item.

This commit is contained in:
Robin Huang 2024-08-02 16:12:07 -07:00
parent ea03c9dcd2
commit 6f71ee49d1

View File

@ -17,6 +17,7 @@ jobs:
matrix: matrix:
python_version: [3.11.8] python_version: [3.11.8]
cuda_version: [121] cuda_version: [121]
extra_dependencies: ["numpy<2"]
steps: steps:
- name: Calculate Minor Version - name: Calculate Minor Version
shell: bash shell: bash
@ -46,7 +47,7 @@ jobs:
..\python_embeded\python.exe -s -m pip install --upgrade torch torchvision torchaudio --extra-index-url https://download.pytorch.org/whl/cu${{ matrix.cuda_version }} -r ../ComfyUI/requirements.txt pygit2 ..\python_embeded\python.exe -s -m pip install --upgrade torch torchvision torchaudio --extra-index-url https://download.pytorch.org/whl/cu${{ matrix.cuda_version }} -r ../ComfyUI/requirements.txt pygit2
pause" > update_comfyui_and_python_dependencies.bat pause" > update_comfyui_and_python_dependencies.bat
python -m pip wheel --no-cache-dir torch torchvision torchaudio --extra-index-url https://download.pytorch.org/whl/cu${{ matrix.cuda_version }} -r requirements.txt pygit2 -w ./temp_wheel_dir python -m pip wheel --no-cache-dir torch torchvision torchaudio ${{ matrix.extra_dependencies }} --extra-index-url https://download.pytorch.org/whl/cu${{ matrix.cuda_version }} -r requirements.txt pygit2 -w ./temp_wheel_dir
python -m pip install --no-cache-dir ./temp_wheel_dir/* python -m pip install --no-cache-dir ./temp_wheel_dir/*
echo installed basic echo installed basic
ls -lah temp_wheel_dir ls -lah temp_wheel_dir