Skip to content

Commit

Permalink
Update pip installation commands
Browse files Browse the repository at this point in the history
  • Loading branch information
yoland68 committed Jul 20, 2024
1 parent 11a37ea commit 4bd4c46
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -147,9 +147,9 @@ runs:
shell: bash -el {0}
run: |
conda activate gha-comfyui-${{ inputs.python_version }}-${{ inputs.torch_version }}
which pip3
pip3 install -r requirements.txt
pip3 install -U comfy-cli
which pip
pip install -r requirements.txt
pip install -U comfy-cli
- name: '[Unix] Check conda environment'
if: ${{ inputs.os != 'windows' }}
Expand All @@ -171,7 +171,8 @@ runs:
run: |
conda activate gha-comfyui-${{ inputs.python_version }}-${{ inputs.torch_version }}
cd ${{ github.action_path }}
pip3 install -r requirements.txt
which pip
pip install -r requirements.txt
python default-models-prep.py --cache-directory ~/.cache/comfy-actions-runner/modelcache --live-directory "$GITHUB_WORKSPACE/models"
- name: '[Unix] Run ComfyUI quick test'
Expand Down Expand Up @@ -331,15 +332,15 @@ runs:
shell: powershell
run: |
conda activate gha-comfyui-${{ inputs.python_version }}-${{ inputs.torch_version }}
Get-Command pip
Get-Command pip3
pip3 install --pre torch torchvision torchaudio --index-url https://download.pytorch.org/whl/nightly/cu121
- name: '[Win-Only] Install Pytorch stable'
if: ${{ inputs.os == 'windows' && inputs.torch_version =='stable' }}
shell: powershell
run: |
conda activate gha-comfyui-${{ inputs.python_version }}-${{ inputs.torch_version }}
Get-Command pip
Get-Command pip3
pip3 install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu121
- name: '[Win] Install Pytorch specific version'
Expand Down

0 comments on commit 4bd4c46

Please sign in to comment.