Skip to content

Commit d59216b

Browse files
committed
Set up CI with Azure Pipelines
[skip ci]
1 parent e792293 commit d59216b

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

azure-pipelines.yml

+36
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
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+
- main
8+
9+
pool:
10+
vmImage: ubuntu-latest
11+
strategy:
12+
matrix:
13+
Python27:
14+
python.version: '2.7'
15+
Python35:
16+
python.version: '3.5'
17+
Python36:
18+
python.version: '3.6'
19+
Python37:
20+
python.version: '3.7'
21+
22+
steps:
23+
- task: UsePythonVersion@0
24+
inputs:
25+
versionSpec: '$(python.version)'
26+
displayName: 'Use Python $(python.version)'
27+
28+
- script: |
29+
python -m pip install --upgrade pip
30+
pip install -r requirements.txt
31+
displayName: 'Install dependencies'
32+
33+
- script: |
34+
pip install pytest pytest-azurepipelines
35+
pytest
36+
displayName: 'pytest'

0 commit comments

Comments
 (0)