forked from nteract/papermill
-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-pipelines.yml
86 lines (79 loc) · 1.92 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
trigger:
- main
# Set variables once
variables:
linux: 'ubuntu-16.04'
mac: 'macos-10.13'
windows: 'vs2017-win2016'
pr:
branches:
include:
- '*'
jobs:
- job: 'Test'
strategy:
matrix:
py36-linux:
imageName: $(linux)
python.version: '3.6'
tox.env: py36
py37-linux:
imageName: $(linux)
python.version: '3.7'
tox.env: py37
py38-linux:
imageName: $(linux)
python.version: '3.8'
tox.env: py38
py36-mac:
imageName: $(mac)
python.version: '3.6'
tox.env: py36
py37-mac:
imageName: $(mac)
python.version: '3.7'
tox.env: py37
py38-mac:
imageName: $(mac)
python.version: '3.8'
tox.env: py38
py36-win:
imageName: $(windows)
python.version: '3.6'
tox.env: py36
py37-win:
imageName: $(windows)
python.version: '3.7'
tox.env: py37
py38-win:
imageName: $(windows)
python.version: '3.8'
tox.env: py38
flake8:
imageName: $(linux)
python.version: '3.8'
tox.env: flake8
dist:
imageName: $(linux)
python.version: '3.8'
tox.env: dist
docs:
imageName: $(linux)
python.version: '3.8'
tox.env: docs
manifest:
imageName: $(linux)
python.version: '3.8'
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)'