-
Notifications
You must be signed in to change notification settings - Fork 31
51 lines (47 loc) · 1.78 KB
/
python_unittest.yaml
File metadata and controls
51 lines (47 loc) · 1.78 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
name: Testing
on: [push, pull_request, create]
jobs:
tests:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
python: ['3.7', '3.8']
pytorch: ['1.4.0', '1.5.0', '1.6.0', '1.7.0']
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'
exclude:
- pytorch: '1.3.0'
python: '3.8'
steps:
- name: Clone Repository
uses: actions/checkout@v2
with:
ref: ${{ github.ref }}
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python }}
architecture: x64
- name: Install Dependencies
run: |
python3 --version
python3 -m pip install -U pip setuptools
# pip3 install --install-option="--no-cython-compile" cython
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 gsutil tqdm pygame
pip3 install gym==0.23.1
make dev
- name: Lint Code
run: make lint
- name: Run Tests
run: make tests