Skip to content

Commit 9e06cb9

Browse files
committed
Set up CI with Azure Pipelines
1 parent c11af27 commit 9e06cb9

File tree

1 file changed

+47
-0
lines changed

1 file changed

+47
-0
lines changed

azure-pipelines.yml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
# Python package
2+
# Create and test a Python package on multiple Python versions.
3+
# Add steps that analyze code, save the dist with the build record, publish to a PyPI-compatible index, and more:
4+
# https://docs.microsoft.com/azure/devops/pipelines/languages/python
5+
6+
trigger:
7+
- master
8+
9+
jobs:
10+
11+
- job: 'Test'
12+
pool:
13+
vmImage: 'Ubuntu-16.04'
14+
strategy:
15+
matrix:
16+
Python27:
17+
python.version: '2.7'
18+
Python35:
19+
python.version: '3.5'
20+
Python36:
21+
python.version: '3.6'
22+
Python37:
23+
python.version: '3.7'
24+
maxParallel: 4
25+
26+
steps:
27+
- task: UsePythonVersion@0
28+
inputs:
29+
versionSpec: '$(python.version)'
30+
architecture: 'x64'
31+
32+
- script: python -m unittest discover
33+
displayName: 'Unit Tests'
34+
35+
- job: 'Publish'
36+
dependsOn: 'Test'
37+
pool:
38+
vmImage: 'Ubuntu-16.04'
39+
40+
steps:
41+
- task: UsePythonVersion@0
42+
inputs:
43+
versionSpec: '3.x'
44+
architecture: 'x64'
45+
46+
- script: python setup.py sdist
47+
displayName: 'Build sdist'

0 commit comments

Comments
 (0)