-
Notifications
You must be signed in to change notification settings - Fork 1
/
azure_job_template.yml
60 lines (56 loc) · 1.45 KB
/
azure_job_template.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
parameters:
platform: ''
vmImage: ''
dependsOn: ''
jobs:
- job: ${{ parameters.platform }}
displayName: ${{ parameters.platform }}
dependsOn: ${{ parameters.dependsOn }}
pool:
vmImage: ${{ parameters.vmImage }}
strategy:
matrix:
2_7:
python.version: '2.7'
python.architecture: 'x64'
tox.env: 'py27'
3_4:
python.version: '3.4'
python.architecture: 'x64'
tox.env: 'py34'
3_5:
python.version: '3.5'
python.architecture: 'x64'
tox.env: 'py35'
3_6:
python.version: '3.6'
python.architecture: 'x64'
tox.env: 'py36'
3_7:
python.version: '3.7'
python.architecture: 'x64'
tox.env: 'py37'
pypy:
python.version: 'pypy2'
python.architecture: 'x64'
tox.env: 'pypy'
pypy3:
python.version: 'pypy3'
python.architecture: 'x64'
tox.env: 'pypy3'
maxParallel: 4
steps:
- template: azure-download_artifact_step_template.yml
- task: UsePythonVersion@0
inputs:
versionSpec: '$(python.version)'
architecture: '$(python.architecture)'
- bash: |
python -m pip install tox pytest-azurepipelines
python -m tox -e $(tox.env) --installpkg dist/*.whl
displayName: 'Test'
- bash: |
python -m tox -e codecov
displayName: 'Upload Coverage'
env:
CODECOV_TOKEN: '$(CODECOV_TOKEN)'