Skip to content

Fix CUB200 Download #411

Fix CUB200 Download

Fix CUB200 Download #411

name: Testing
on: [push, pull_request, create]
jobs:
tests:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-22.04, ubuntu-latest, macos-latest]
python: ['3.8']
pytorch: ['1.4.0', '1.5.0', '1.6.0', '1.7.0', '1.8.0', '1.9.0', '1.10.0', '1.13.1']
include:
- pytorch: '1.4.0'
torchvision: '0.5.0'
- pytorch: '1.5.0'
torchvision: '0.6.0'
- pytorch: '1.6.0'
torchvision: '0.7.0'
- pytorch: '1.7.0'
torchvision: '0.8.0'
- pytorch: '1.8.0'
torchvision: '0.9.0'
- pytorch: '1.9.0'
torchvision: '0.10.0'
- pytorch: '1.10.0'
torchvision: '0.11.1'
- pytorch: '1.13.1'
torchvision: '0.14.0'
exclude:
- pytorch: '1.3.0'
python: '3.8'
- pytorch: '1.4.0'
python: '3.9'
- pytorch: '1.5.0'
python: '3.9'
- pytorch: '1.6.0'
python: '3.9'
- pytorch: '1.7.0'
python: '3.9'
steps:
- name: Clone Repository
uses: actions/checkout@v3
with:
ref: ${{ github.ref }}
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python }}
cache: 'pip'
architecture: x64
- name: Install Dependencies
run: |
python3 --version
python3 -m pip install -U pip
pip3 install cython pybind11
pip3 install torch==${{ matrix.pytorch }}
pip3 install torchvision==${{ matrix.torchvision }}
pip3 install chardet==3.0.4 # can be remove when fix in: https://github.com/aio-libs/aiohttp/issues/5366
pip3 install requests numpy gym gsutil tqdm
make dev
- name: Lint Code
run: make lint
- name: Run Tests
run: make tests