-
Notifications
You must be signed in to change notification settings - Fork 100
/
.travis.yml
51 lines (46 loc) · 1.18 KB
/
.travis.yml
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
language: python
# Supported Python versions
dist: xenial # required for Python >= 3.7
python:
- 3.7
- 3.6
# Supported PyTorch versions
env:
- PYTORCH=1.4.0
- PYTORCH=1.3.1
- PYTORCH=1.3.0
- PYTORCH=1.2.0
- PYTORCH=1.1.0
stages:
- lint
- test
# Run Lint first with Python 3.7 and PyTorch 1.2.0.
jobs:
include:
- stage: lint
install:
- pip install torch==$PYTORCH
- pip install flake8 mypy
- lint () { flake8 "$1" && mypy "$1"; }
script:
- lint torchgpipe
- lint tests
- lint benchmarks/models/resnet
- lint benchmarks/models/amoebanet
- lint benchmarks/models/unet
- lint benchmarks/amoebanetd-memory
- lint benchmarks/amoebanetd-speed
- lint benchmarks/resnet101-accuracy
- lint benchmarks/resnet101-speed
- lint benchmarks/unet-memory
- lint benchmarks/unet-speed
- lint benchmarks/unet-timeline
# Test with various Python and PyTorch versions.
install:
- pip install pytest-cov coveralls
- pip install torch==$PYTORCH
- python setup.py install
script:
- PYTEST_ADDOPTS='--cov torchgpipe' python setup.py test
after_success:
- coveralls