-
Notifications
You must be signed in to change notification settings - Fork 1
/
azure-pipelines.yml
107 lines (102 loc) · 2.51 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
jobs:
- job: LinuxTest
pool:
vmImage: 'ubuntu-latest'
strategy:
matrix:
Python36:
PYTHON_VERSION: '3.6'
Python37:
PYTHON_VERSION: '3.7'
Python38:
PYTHON_VERSION: '3.8'
maxParallel: 3
steps:
- template: azure-templates/test.yml
parameters:
python_version: $(PYTHON_VERSION)
- job: macOSTest
pool:
vmImage: 'macOS-latest'
strategy:
matrix:
Python36:
PYTHON_VERSION: '3.6'
Python37:
PYTHON_VERSION: '3.7'
maxParallel: 2
steps:
- template: azure-templates/test.yml
parameters:
python_version: $(PYTHON_VERSION)
- job: WindowsTest
pool:
vmImage: 'windows-latest'
strategy:
matrix:
Python36:
PYTHON_VERSION: '3.6'
Python37:
PYTHON_VERSION: '3.7'
maxParallel: 2
steps:
- template: azure-templates/test.yml
parameters:
python_version: $(PYTHON_VERSION)
- job: ManyLinux2010Wheel
pool:
vmImage: 'ubuntu-latest'
condition: eq(variables['Build.SourceBranch'], 'refs/heads/main')
steps:
- script: |
docker pull quay.io/pypa/manylinux2010_x86_64
docker run --rm -v $PWD:/io quay.io/pypa/manylinux1_x86_64 /io/build-wheels.sh
mkdir wheelhouse
sudo mv dist/*manylinux*.whl wheelhouse
displayName: Build manylinux2010 wheel
- task: PublishBuildArtifacts@1
inputs:
pathtoPublish: wheelhouse
artifactName: Wheels
- job: macOSWheel
pool:
vmImage: 'macOS-latest'
condition: eq(variables['Build.SourceBranch'], 'refs/heads/main')
strategy:
matrix:
Python36:
PYTHON_VERSION: '3.6'
Python37:
PYTHON_VERSION: '3.7'
Python38:
PYTHON_VERSION: '3.8'
maxParallel: 4
steps:
- template: azure-templates/wheel.yml
parameters:
python_version: $(PYTHON_VERSION)
- task: PublishBuildArtifacts@1
inputs:
pathtoPublish: wheelhouse
artifactName: Wheels
- job: WindowsWheel
pool:
vmImage: 'windows-latest'
condition: eq(variables['Build.SourceBranch'], 'refs/heads/main')
strategy:
matrix:
Python36:
PYTHON_VERSION: '3.6'
Python37:
PYTHON_VERSION: '3.7'
Python38:
PYTHON_VERSION: '3.8'
maxParallel: 4
steps:
- template: azure-templates/wheel.yml
parameters:
python_version: $(PYTHON_VERSION)
- task: PublishBuildArtifacts@1
inputs:
pathtoPublish: wheelhouse
artifactName: Wheels