forked from openpifpaf/openpifpaf
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
74 lines (74 loc) · 2.95 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
dist: xenial
language: python
cache: pip
matrix:
fast_finish: true
include:
- name: "Python 3.7 on Linux (PyTorch 1.4)"
python: 3.7
before_install:
- pip3 install --upgrade pip setuptools
- pip3 install torch==1.4.0+cpu torchvision==0.5.0+cpu -f https://download.pytorch.org/whl/torch_stable.html
- name: "Python 3.7 on Linux with training"
python: 3.7
env:
- PIFPAFTRAINING=1
before_install:
- pip3 install --upgrade pip setuptools
- pip3 install torch==1.4.0+cpu torchvision==0.5.0+cpu -f https://download.pytorch.org/whl/torch_stable.html
- pip3 install Cython numpy
- "pip3 install --editable .[train]"
- name: "Python 3.6 on Linux (PyTorch 1.4)"
if: branch = master
python: 3.6
before_install:
- pip3 install --upgrade pip setuptools
- pip3 install torch==1.4.0+cpu torchvision==0.5.0+cpu -f https://download.pytorch.org/whl/torch_stable.html
- name: "Python 3.7 on Linux (PyTorch 1.3)"
if: branch = master
python: 3.7
before_install:
- pip3 install --upgrade pip setuptools
- pip3 install torch==1.3.1+cpu torchvision==0.4.1+cpu -f https://download.pytorch.org/whl/cpu/torch_stable.html
- name: "Python 3.7 on Linux (PyTorch 1.5)"
if: branch = master
python: 3.7
before_install:
- pip3 install --upgrade pip setuptools
- pip3 install torch==1.5.0+cpu torchvision==0.6.0+cpu -f https://download.pytorch.org/whl/cpu/torch_stable.html
- name: "Python 3.8 on Linux (PyTorch 1.5)"
if: branch = master
python: 3.8
before_install:
- pip3 install --upgrade pip setuptools
- pip3 install torch==1.5.0+cpu torchvision==0.6.0+cpu -f https://download.pytorch.org/whl/cpu/torch_stable.html
- name: "macOS (PyTorch 1.4)"
if: branch = master
os: osx
osx_image: xcode11
language: shell # 'language: python' is an error on Travis CI macOS
before_install:
- pip3 install --upgrade pip setuptools
- pip3 install torch==1.4.0 torchvision==0.5.0 -f https://download.pytorch.org/whl/torch_stable.html
- name: "Windows (PyTorch 1.4)"
if: branch = master
os: windows
language: shell # 'language: python' is an error on Travis CI Windows
before_install:
- choco install python --version 3.7.4
- python --version
- python -m pip install --upgrade pip
- pip3 install --upgrade pip setuptools
- pip3 install torch==1.4.0+cpu torchvision==0.5.0+cpu -f https://download.pytorch.org/whl/torch_stable.html
env: PATH=/c/Python37:/c/Python37/Scripts:$PATH
install:
- "pip3 install --editable .[test]"
script:
- pylint openpifpaf --disable=fixme
- pylint tests/*.py --disable=fixme
- pytest -vv
- |
if [ $PIFPAFTRAINING == "1" ]; then
pytest --nbval-lax --current-env docs/predict.ipynb;
cd guide && pytest --nbval-lax --current-env *.ipynb;
fi