Skip to content

Commit 25d802b

Browse files
committed
Set up CI with Azure Pipelines
[skip ci]
1 parent c188810 commit 25d802b

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+
pool:
10+
vmImage: 'ubuntu-latest'
11+
12+
jobs:
13+
- job: Test
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+
25+
steps:
26+
- task: UsePythonVersion@0
27+
inputs:
28+
versionSpec: '$(python.version)'
29+
displayName: 'Use Python $(python.version)'
30+
31+
- script: |
32+
python -m pip install --upgrade pip
33+
pip install -r requirements.txt
34+
displayName: 'Install dependencies'
35+
36+
- script: |
37+
pip install pytest pytest-azurepipelines
38+
pytest
39+
displayName: 'pytest'
40+
41+
- job: Deploy
42+
dependsOn: Test
43+
44+
steps:
45+
- script: |
46+
python setup.py sdist
47+
displayName: 'Artifact creation'

0 commit comments

Comments
 (0)