-
Notifications
You must be signed in to change notification settings - Fork 354
68 lines (64 loc) · 2.43 KB
/
python_unittest.yaml
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
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 scipy==1.10.1
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