mirror of
https://github.com/huggingface/pytorch-image-models.git
synced 2025-06-03 15:01:08 +08:00
Update tests.yml
Attempt to work around flaky azure ubuntu mirrors
This commit is contained in:
parent
dd60c45044
commit
65aea97067
3
.github/workflows/tests.yml
vendored
3
.github/workflows/tests.yml
vendored
@ -40,9 +40,10 @@ jobs:
|
||||
- name: Install torch on ubuntu
|
||||
if: startsWith(matrix.os, 'ubuntu')
|
||||
run: |
|
||||
pip install --no-cache-dir torch==${{ matrix.torch }}+cpu torchvision==${{ matrix.torchvision }}+cpu -f https://download.pytorch.org/whl/torch_stable.html
|
||||
sudo sed -i 's/azure\.//' /etc/apt/sources.list
|
||||
sudo apt update
|
||||
sudo apt install -y google-perftools
|
||||
pip install --no-cache-dir torch==${{ matrix.torch }}+cpu torchvision==${{ matrix.torchvision }}+cpu -f https://download.pytorch.org/whl/torch_stable.html
|
||||
- name: Install requirements
|
||||
run: |
|
||||
pip install -r requirements.txt
|
||||
|
Loading…
x
Reference in New Issue
Block a user