forked from nteract/papermill
-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-pipelines.yml
98 lines (91 loc) · 2.23 KB
/
azure-pipelines.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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
trigger:
- master
# Set variables once
variables:
linux: 'ubuntu-16.04'
mac: 'macos-10.13'
windows: 'vs2017-win2016'
pr:
branches:
include:
- '*'
jobs:
- job: 'Test'
strategy:
matrix:
py27-linux:
imageName: $(linux)
python.version: '2.7'
tox.env: py27
py35-linux:
imageName: $(linux)
python.version: '3.5'
tox.env: py35
py36-linux:
imageName: $(linux)
python.version: '3.6'
tox.env: py36
py37-linux:
imageName: $(linux)
python.version: '3.7'
tox.env: py37
py27-mac:
imageName: $(mac)
python.version: '2.7'
tox.env: py27
py35-mac:
imageName: $(mac)
python.version: '3.5'
tox.env: py35
py36-mac:
imageName: $(mac)
python.version: '3.6'
tox.env: py36
py37-mac:
imageName: $(mac)
python.version: '3.7'
tox.env: py37
py27-win:
imageName: $(windows)
python.version: '2.7'
tox.env: py27
py35-win:
imageName: $(windows)
python.version: '3.5'
tox.env: py35
py36-win:
imageName: $(windows)
python.version: '3.6'
tox.env: py36
py37-win:
imageName: $(windows)
python.version: '3.7'
tox.env: py37
flake8:
imageName: $(linux)
python.version: '3.6'
tox.env: flake8
dist:
imageName: $(linux)
python.version: '3.6'
tox.env: dist
docs:
imageName: $(linux)
python.version: '3.6'
tox.env: docs
manifest:
imageName: $(linux)
python.version: '3.6'
tox.env: manifest
steps:
- task: UsePythonVersion@0
displayName: 'Use Python $(python.version) for tests'
inputs:
versionSpec: '$(python.version)'
architecture: 'x64'
- script: pip install -U pip
displayName: 'Upgrade pip'
- script: pip install tox
displayName: 'Install tox'
- script: tox -e $(tox.env)
displayName: 'Run tox -e $(tox.env)'