Update tests.yml

Attempt to work around flaky azure ubuntu mirrors
pull/1330/head^2
Ross Wightman 2 years ago committed by GitHub
parent dd60c45044
commit 65aea97067
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -40,9 +40,10 @@ jobs:
- name: Install torch on ubuntu - name: Install torch on ubuntu
if: startsWith(matrix.os, 'ubuntu') if: startsWith(matrix.os, 'ubuntu')
run: | 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 update
sudo apt install -y google-perftools 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 - name: Install requirements
run: | run: |
pip install -r requirements.txt pip install -r requirements.txt

Loading…
Cancel
Save