Skip to content

Commit

Permalink
Fix python failing tests (#1299)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
c-p-i-o authored Nov 5, 2024
1 parent cdef4d4 commit 47d0c2e
Show file tree
Hide file tree
Showing 12 changed files with 16 additions and 16 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/main_python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Set up Python 3.8
uses: actions/setup-python@v2
- uses: actions/checkout@v4
- name: Set up Python 3.10
uses: actions/setup-python@v5
with:
python-version: 3.8
python-version: '3.10'
- name: Install PyTorch
run: |
python -m pip install --upgrade pip
Expand Down
2 changes: 1 addition & 1 deletion dcgan/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
torch
torchvision
torchvision==0.20.0
lmdb
2 changes: 1 addition & 1 deletion gat/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
torch
requests
numpy
numpy<2
4 changes: 2 additions & 2 deletions gcn/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
torch
torchvision
torchvision==0.20.0
requests
numpy
numpy<2
2 changes: 1 addition & 1 deletion imagenet/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
torch
torchvision
torchvision==0.20.0
2 changes: 1 addition & 1 deletion language_translation/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
torch
torchtext
torchdata
torchdata==0.9.0
spacy
portalocker
2 changes: 1 addition & 1 deletion mnist/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
torch
torchvision
torchvision==0.20.0
2 changes: 1 addition & 1 deletion mnist_forward_forward/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
torch
torchvision
torchvision==0.20.0
2 changes: 1 addition & 1 deletion mnist_hogwild/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
torch
torchvision
torchvision==0.20.0
2 changes: 1 addition & 1 deletion mnist_rnn/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
torch
torchvision
torchvision==0.20.0
2 changes: 1 addition & 1 deletion siamese_network/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
torch
torchvision
torchvision==0.20.0
2 changes: 1 addition & 1 deletion vae/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
torch
torchvision
torchvision==0.20.0
tqdm
six

0 comments on commit 47d0c2e

Please sign in to comment.