-
-
Notifications
You must be signed in to change notification settings - Fork 28
/
azure-pipelines.yml
47 lines (40 loc) · 1.14 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
# Python package
# Create and test a Python package on multiple Python versions.
# Add steps that analyze code, save the dist with the build record, publish to a PyPI-compatible index, and more:
# https://docs.microsoft.com/azure/devops/pipelines/languages/python
jobs:
- template: .azure-pipelines/jobs/lint.yml
parameters:
name: Lint
vmImage: "ubuntu-latest"
toxenv: lint
- template: .azure-pipelines/jobs/test.yml
parameters:
name: Linux
vmImage: "ubuntu-latest"
- template: .azure-pipelines/jobs/test.yml
parameters:
name: macOS
vmImage: "macOS-latest"
- template: .azure-pipelines/jobs/test.yml
parameters:
name: Windows
vmImage: "windows-latest"
- job: Publish
dependsOn:
- Lint
- Linux
- macOS
- Windows
pool:
vmImage: "ubuntu-latest"
steps:
- task: UsePythonVersion@0.206.0
inputs:
versionSpec: "3.x"
architecture: "x64"
- script: |
python -m pip install --upgrade pip
python -m pip install -U build
python -m build
displayName: "Build sdist and wheel"