forked from IDSIA/sacred
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathazure-pipelines.yml
109 lines (108 loc) · 2.82 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
jobs:
- job: test
strategy:
matrix:
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'
Windows py310:
IMAGE_NAME: 'windows-latest'
PYTHON_VERSION: '3.10'
TOX_CMD: 'py310'
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'
OSX py310:
IMAGE_NAME: 'macOS-latest'
PYTHON_VERSION: '3.10'
TOX_CMD: 'py310'
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 py310:
IMAGE_NAME: 'ubuntu-latest'
PYTHON_VERSION: '3.10'
TOX_CMD: 'py310'
Linux numpy_120:
IMAGE_NAME: 'ubuntu-latest'
PYTHON_VERSION: '3.9'
TOX_CMD: 'numpy-120'
Linux numpy_121:
IMAGE_NAME: 'ubuntu-latest'
PYTHON_VERSION: '3.9'
TOX_CMD: 'numpy-121'
Linux numpy_122:
IMAGE_NAME: 'ubuntu-latest'
PYTHON_VERSION: '3.10'
TOX_CMD: 'numpy-122'
Linux numpy_123:
IMAGE_NAME: 'ubuntu-latest'
PYTHON_VERSION: '3.10'
TOX_CMD: 'numpy-123'
Linux tensorflow_27:
IMAGE_NAME: 'ubuntu-latest'
PYTHON_VERSION: '3.8'
TOX_CMD: 'tensorflow-27'
Linux tensorflow-28:
IMAGE_NAME: 'ubuntu-latest'
PYTHON_VERSION: '3.9'
TOX_CMD: 'tensorflow-28'
Linux tensorflow_29:
IMAGE_NAME: 'ubuntu-latest'
PYTHON_VERSION: '3.10'
TOX_CMD: 'tensorflow-29'
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_39
pool:
vmImage: 'ubuntu-latest'
steps:
- task: UsePythonVersion@0
inputs:
versionSpec: '3.9'
- bash: bash ./tests/check_pre_commit.sh
- job: test_pre_commit_310
pool:
vmImage: 'ubuntu-latest'
steps:
- task: UsePythonVersion@0
inputs:
versionSpec: '3.10'
- bash: bash ./tests/check_pre_commit.sh