Skip to content

Commit 47d0c2e

Browse files
authored
Fix python failing tests (#1299)
Summary: 1. Pick specific version of torchvision to fix dependency errors 2. Pin numpy to be below version 2. 3. Update Python version in python tests. Test Plan: Tested locally.
1 parent cdef4d4 commit 47d0c2e

File tree

12 files changed

+16
-16
lines changed

12 files changed

+16
-16
lines changed

.github/workflows/main_python.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@ jobs:
1616
runs-on: ubuntu-latest
1717

1818
steps:
19-
- uses: actions/checkout@v2
20-
- name: Set up Python 3.8
21-
uses: actions/setup-python@v2
19+
- uses: actions/checkout@v4
20+
- name: Set up Python 3.10
21+
uses: actions/setup-python@v5
2222
with:
23-
python-version: 3.8
23+
python-version: '3.10'
2424
- name: Install PyTorch
2525
run: |
2626
python -m pip install --upgrade pip

dcgan/requirements.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
torch
2-
torchvision
2+
torchvision==0.20.0
33
lmdb

gat/requirements.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
torch
22
requests
3-
numpy
3+
numpy<2

gcn/requirements.txt

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
torch
2-
torchvision
2+
torchvision==0.20.0
33
requests
4-
numpy
4+
numpy<2

imagenet/requirements.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
torch
2-
torchvision
2+
torchvision==0.20.0

language_translation/requirements.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
torch
22
torchtext
3-
torchdata
3+
torchdata==0.9.0
44
spacy
55
portalocker

mnist/requirements.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
torch
2-
torchvision
2+
torchvision==0.20.0
+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
torch
2-
torchvision
2+
torchvision==0.20.0

mnist_hogwild/requirements.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
torch
2-
torchvision
2+
torchvision==0.20.0

mnist_rnn/requirements.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
torch
2-
torchvision
2+
torchvision==0.20.0

siamese_network/requirements.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
torch
2-
torchvision
2+
torchvision==0.20.0

vae/requirements.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
torch
2-
torchvision
2+
torchvision==0.20.0
33
tqdm
44
six

0 commit comments

Comments
 (0)