forked from IDSIA/sacred
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathazure-pipelines.yml
117 lines (116 loc) · 3.11 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
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
jobs:
- job: test
strategy:
matrix:
Windows py37:
IMAGE_NAME: 'windows-latest'
PYTHON_VERSION: '3.7'
TOX_CMD: 'py37'
Windows py38:
IMAGE_NAME: 'windows-latest'
PYTHON_VERSION: '3.8'
TOX_CMD: 'py38'
Windows py39:
IMAGE_NAME: 'windows-latest'
PYTHON_VERSION: '3.9'
TOX_CMD: 'py39'
OSX py37:
IMAGE_NAME: 'macOS-latest'
PYTHON_VERSION: '3.7'
TOX_CMD: 'py37'
OSX py38:
IMAGE_NAME: 'macOS-latest'
PYTHON_VERSION: '3.8'
TOX_CMD: 'py38'
OSX py39:
IMAGE_NAME: 'macOS-latest'
PYTHON_VERSION: '3.9'
TOX_CMD: 'py39'
Linux py37:
IMAGE_NAME: 'ubuntu-latest'
PYTHON_VERSION: '3.7'
TOX_CMD: 'py37'
Linux py38:
IMAGE_NAME: 'ubuntu-latest'
PYTHON_VERSION: '3.8'
TOX_CMD: 'py38'
Linux py39:
IMAGE_NAME: 'ubuntu-latest'
PYTHON_VERSION: '3.9'
TOX_CMD: 'py39'
Linux numpy_117:
IMAGE_NAME: 'ubuntu-latest'
PYTHON_VERSION: '3.7'
TOX_CMD: 'numpy-117'
Linux numpy_118:
IMAGE_NAME: 'ubuntu-latest'
PYTHON_VERSION: '3.8'
TOX_CMD: 'numpy-118'
Linux numpy_119:
IMAGE_NAME: 'ubuntu-latest'
PYTHON_VERSION: '3.9'
TOX_CMD: 'numpy-119'
Linux numpy_120:
IMAGE_NAME: 'ubuntu-latest'
PYTHON_VERSION: '3.9'
TOX_CMD: 'numpy-120'
Linux tensorflow_115:
IMAGE_NAME: 'ubuntu-latest'
PYTHON_VERSION: '3.7'
TOX_CMD: 'tensorflow-115'
Linux tensorflow_20:
IMAGE_NAME: 'ubuntu-latest'
PYTHON_VERSION: '3.7'
TOX_CMD: 'tensorflow-20'
Linux tensorflow-21:
IMAGE_NAME: 'ubuntu-latest'
PYTHON_VERSION: '3.7'
TOX_CMD: 'tensorflow-21'
Linux tensorflow_22:
IMAGE_NAME: 'ubuntu-latest'
PYTHON_VERSION: '3.8'
TOX_CMD: 'tensorflow-22'
Linux tensorflow_23:
IMAGE_NAME: 'ubuntu-latest'
PYTHON_VERSION: '3.8'
TOX_CMD: 'tensorflow-23'
Linux tensorflow_24:
IMAGE_NAME: 'ubuntu-latest'
PYTHON_VERSION: '3.8'
TOX_CMD: 'tensorflow-24'
Linux tensorflow_25:
IMAGE_NAME: 'ubuntu-latest'
PYTHON_VERSION: '3.8'
TOX_CMD: 'tensorflow-25'
Linux setup:
IMAGE_NAME: 'ubuntu-latest'
PYTHON_VERSION: '3.9'
TOX_CMD: 'setup'
Linux flake8:
IMAGE_NAME: 'ubuntu-latest'
PYTHON_VERSION: '3.9'
TOX_CMD: 'flake8'
Linux black:
IMAGE_NAME: 'ubuntu-latest'
PYTHON_VERSION: '3.9'
TOX_CMD: 'black'
Linux coverage:
IMAGE_NAME: 'ubuntu-latest'
PYTHON_VERSION: '3.9'
TOX_CMD: 'coverage'
pool:
vmImage: $(IMAGE_NAME)
steps:
- task: UsePythonVersion@0
inputs:
versionSpec: $(PYTHON_VERSION)
- bash: pip install tox
- bash: tox -e $TOX_CMD
- job: test_pre_commit
pool:
vmImage: 'ubuntu-latest'
steps:
- task: UsePythonVersion@0
inputs:
versionSpec: '3.9'
- bash: bash ./tests/check_pre_commit.sh