Skip to content

Commit 8a33d3b

Browse files
committed
Set up CI with Azure Pipelines
[skip ci]
1 parent 3ef40b9 commit 8a33d3b

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

azure-pipelines.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
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+
strategy:
12+
matrix:
13+
Python36:
14+
python.version: '3.6'
15+
Python37:
16+
python.version: '3.7'
17+
Python38:
18+
python.version: '3.8'
19+
20+
steps:
21+
- task: UsePythonVersion@0
22+
inputs:
23+
versionSpec: '$(python.version)'
24+
displayName: 'Use Python $(python.version)'
25+
26+
- script: |
27+
python -m pip install --upgrade pip
28+
pip install -r requirements.txt
29+
displayName: 'Install dependencies'
30+
31+
- script: |
32+
pip install pytest pytest-azurepipelines
33+
pytest
34+
displayName: 'pytest'

0 commit comments

Comments
 (0)