-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.travis.yml
50 lines (44 loc) · 1.58 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
language: python
matrix:
include:
- os: windows
language: sh
python: 3.8 # only works on linux
before_install:
- choco install python3 --version 3.8 --params "/InstallDir:C:\\Python"
- export PATH="/c/Python:/c/Python/Scripts:$PATH"
- python -m pip install --upgrade pip wheel
- pip install torch===1.6.0 torchvision===0.7.0 -f https://download.pytorch.org/whl/torch_stable.html
- os: windows
language: sh
python: 3.7 # only works on linux
before_install:
- choco install python3 --version 3.7 --params "/InstallDir:C:\\Python"
- export PATH="/c/Python:/c/Python/Scripts:$PATH"
- python -m pip install --upgrade pip wheel
- pip install torch===1.6.0 torchvision===0.7.0 -f https://download.pytorch.org/whl/torch_stable.html
- os: windows
language: sh
python: 3.6 # only works on linux
before_install:
- choco install python3 --version 3.6.1 --params "/InstallDir:C:\\Python"
- export PATH="/c/Python:/c/Python/Scripts:$PATH"
- python -m pip install --upgrade pip wheel
- pip install torch===1.6.0 torchvision===0.7.0 -f https://download.pytorch.org/whl/torch_stable.html
- os: linux
python: 3.7 # only works on
- os: linux
python: 3.6 # only works on linux
- os: linux
python: 3.8 # only works on linux
branches:
only:
- master
- develop
install:
- pip install --upgrade pytest
- pip install ".[dev]" . # install package + dev dependencies
script:
- pytest
after_success:
- codecov # submit coverage