Skip to content

Commit

Permalink
Update workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
Tony-Y committed Nov 30, 2024
1 parent aa474eb commit e665441
Show file tree
Hide file tree
Showing 6 changed files with 74 additions and 43 deletions.
36 changes: 29 additions & 7 deletions .github/workflows/download-emnist.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,20 +9,42 @@ jobs:
strategy:
max-parallel: 8
matrix:
torchvision-version: [0.5.0, 0.6.0, 0.6.1, 0.7.0, 0.8.0, 0.8.1, 0.8.2, 0.9.0, 0.9.1, 0.10.0, 0.10.1, 0.11.1, 0.11.2, 0.11.3, 0.12.0, 0.13.0, 0.13.1, 0.14.0, 0.14.1, 0.15.1, 0.15.2, 0.16.0, 0.16.1, 0.16.2, 0.17.0, 0.17.1, 0.17.2, 0.18.0, 0.18.1, 0.19.0, 0.19.1]

torchvision-version: [0.10.1, 0.11.3, 0.12.0, 0.13.1, 0.14.1, 0.15.2, 0.16.2, 0.17.2, 0.18.1, 0.19.1, 0.20.1]
include:
- pytorch-version: 1.9.1
torchvision-version: 0.10.1
- pytorch-version: 1.10.2
torchvision-version: 0.11.3
- pytorch-version: 1.11.0
torchvision-version: 0.12.0
- pytorch-version: 1.12.1
torchvision-version: 0.13.1
- pytorch-version: 1.13.1
torchvision-version: 0.14.1
- pytorch-version: 2.0.1
torchvision-version: 0.15.2
- pytorch-version: 2.1.2
torchvision-version: 0.16.2
- pytorch-version: 2.2.2
torchvision-version: 0.17.2
- pytorch-version: 2.3.1
torchvision-version: 0.18.1
- pytorch-version: 2.4.1
torchvision-version: 0.19.1
- pytorch-version: 2.5.1
torchvision-version: 0.20.1
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.8
- name: Set up Python 3.9
uses: actions/setup-python@v5
with:
python-version: 3.8
python-version: 3.9
- name: Install dependencies
run: |
sudo apt-get update && sudo apt-get install -y libtinfo5
python -m pip install --upgrade pip
pip install 'numpy<2' -U
pip install torchvision==${{ matrix.torchvision-version }} -f https://download.pytorch.org/whl/torch_stable.html
pip install 'numpy<2'
pip install torch==${{ matrix.pytorch-version }}+cpu -f https://download.pytorch.org/whl/torch
pip install torchvision==${{ matrix.torchvision-version }}+cpu -f https://download.pytorch.org/whl/torchvision
pip install setuptools
pip install requests
- name: Install package
Expand Down
9 changes: 5 additions & 4 deletions .github/workflows/example-cifar10.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
strategy:
max-parallel: 8
matrix:
python-version: [3.8, '3.10', 3.12]
python-version: [3.9, '3.10', 3.11, 3.12]
os: [macos-latest, windows-latest, ubuntu-latest]
include:
- pytorch-version: 2.3.1
Expand All @@ -27,8 +27,9 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install 'numpy<2' -U
pip install torch==${{ matrix.pytorch-version }}${{ matrix.pytorch-option }} torchvision==${{ matrix.torchvision-version }}${{ matrix.pytorch-option }} -f https://download.pytorch.org/whl/torch_stable.html
pip install 'numpy<2'
pip install torch==${{ matrix.pytorch-version }}${{ matrix.pytorch-option }} -f https://download.pytorch.org/whl/torch
pip install torchvision==${{ matrix.torchvision-version }}${{ matrix.pytorch-option }} -f https://download.pytorch.org/whl/torchvision
pip install setuptools
pip install requests
pip install tqdm
Expand All @@ -38,5 +39,5 @@ jobs:
run: |
cd examples/cifar10/
python download.py
- name: Train a ResNet20 model on CIFAR dataset
- name: Train a ResNet20 model on CIFAR10 dataset
run: python examples/cifar10/main.py --epochs 1 --no-progress --no-gpu
29 changes: 16 additions & 13 deletions .github/workflows/example-emnist.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,26 +9,28 @@ jobs:
strategy:
max-parallel: 8
matrix:
python-version: [3.7, 3.8, 3.9, '3.10', 3.11, 3.12]
os: [macos-13, windows-latest, ubuntu-latest]
python-version: [3.9, '3.10', 3.11, 3.12]
os: [macos-latest, windows-latest, ubuntu-latest]
include:
- pytorch-version: 1.4.0
torchvision-version: 0.5.0
- pytorch-version: 1.8.0
torchvision-version: 0.9.0
- pytorch-version: 1.9.1
torchvision-version: 0.10.1
python-version: 3.9
- pytorch-version: 1.9.0
torchvision-version: 0.10.0
python-version: 3.9
os: macos-latest
- pytorch-version: 1.11.0
torchvision-version: 0.12.0
python-version: '3.10'
- pytorch-version: 2.0.0
torchvision-version: 0.15.1
- pytorch-version: 2.0.1
torchvision-version: 0.15.2
python-version: 3.11
- pytorch-version: 2.2.0
torchvision-version: 0.17.0
- pytorch-version: 2.2.2
torchvision-version: 0.17.2
python-version: 3.12
- pytorch-option: '+cpu'
- pytorch-option: ''
os: macos-13
os: macos-latest

steps:
- uses: actions/checkout@v4
Expand All @@ -39,8 +41,9 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install 'numpy<2' -U
pip install torch==${{ matrix.pytorch-version }}${{ matrix.pytorch-option }} torchvision==${{ matrix.torchvision-version }}${{ matrix.pytorch-option }} -f https://download.pytorch.org/whl/torch_stable.html
pip install 'numpy<2'
pip install torch==${{ matrix.pytorch-version }}${{ matrix.pytorch-option }} -f https://download.pytorch.org/whl/torch
pip install torchvision==${{ matrix.torchvision-version }}${{ matrix.pytorch-option }} -f https://download.pytorch.org/whl/torchvision
pip install setuptools
pip install requests
- name: Install package
Expand Down
17 changes: 8 additions & 9 deletions .github/workflows/example-plots.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,21 +9,20 @@ jobs:
strategy:
max-parallel: 8
matrix:
python-version: [3.7, 3.8, 3.9, '3.10', 3.11, 3.12]
os: [macos-13, windows-latest, ubuntu-latest]
python-version: [3.9, '3.10', 3.11, 3.12]
os: [macos-latest, windows-latest, ubuntu-latest]
include:
- pytorch-version: 1.4.0
- pytorch-version: 1.8.0
- pytorch-version: 1.9.1
python-version: 3.9
- pytorch-version: 1.11.0
python-version: '3.10'
- pytorch-version: 2.0.0
- pytorch-version: 2.0.1
python-version: 3.11
- pytorch-version: 2.2.0
- pytorch-version: 2.2.2
python-version: 3.12
- pytorch-option: '+cpu'
- pytorch-option: ''
os: macos-13
os: macos-latest

steps:
- uses: actions/checkout@v4
Expand All @@ -34,8 +33,8 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install 'numpy<2' -U
pip install torch==${{ matrix.pytorch-version }}${{ matrix.pytorch-option }} -f https://download.pytorch.org/whl/torch_stable.html
pip install 'numpy<2'
pip install torch==${{ matrix.pytorch-version }}${{ matrix.pytorch-option }} -f https://download.pytorch.org/whl/torch
pip install matplotlib
pip install setuptools
- name: Install package
Expand Down
24 changes: 15 additions & 9 deletions .github/workflows/pythonpackage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,21 +9,27 @@ jobs:
strategy:
max-parallel: 8
matrix:
python-version: [3.7, 3.8, 3.9, '3.10', 3.11, 3.12]
os: [macos-13, windows-latest, ubuntu-latest]
python-version: [3.9, '3.10', 3.11, 3.12]
os: [macos-latest, windows-latest, ubuntu-latest]
pytorch-release: [earliest, latest]
include:
- pytorch-version: 1.4.0
- pytorch-version: 1.8.0
- pytorch-version: 1.9.1
python-version: 3.9
pytorch-release: earliest
- pytorch-version: 1.11.0
python-version: '3.10'
- pytorch-version: 2.0.0
pytorch-release: earliest
- pytorch-version: 2.0.1
python-version: 3.11
- pytorch-version: 2.2.0
pytorch-release: earliest
- pytorch-version: 2.2.2
python-version: 3.12
pytorch-release: earliest
- pytorch-version: 2.5.1
pytorch-release: latest
- pytorch-option: '+cpu'
- pytorch-option: ''
os: macos-13
os: macos-latest

steps:
- uses: actions/checkout@v4
Expand All @@ -34,8 +40,8 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install 'numpy<2' -U
pip install torch==${{ matrix.pytorch-version }}${{ matrix.pytorch-option }} -f https://download.pytorch.org/whl/torch_stable.html
pip install 'numpy<2'
pip install torch==${{ matrix.pytorch-version }}${{ matrix.pytorch-option }} -f https://download.pytorch.org/whl/torch
- name: Lint with flake8
run: |
pip install flake8
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/sphinx-gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install 'numpy<2' -U
pip install 'numpy<2'
pip install torch --index-url https://download.pytorch.org/whl/cpu
pip install sphinx sphinxcontrib-katex sphinx-copybutton sphinx-multiversion sphinx-rtd-theme
- name: Sphinx Build
Expand Down

0 comments on commit e665441

Please sign in to comment.