Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit bc43abd

Browse files
Set up CI with Azure Pipelines
1 parent a2ef122 commit bc43abd

File tree

1 file changed

+44
-0
lines changed

1 file changed

+44
-0
lines changed

azure-pipelines.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
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+
jobs:
7+
8+
- job: 'Test'
9+
pool:
10+
vmImage: 'Ubuntu 16.04'
11+
strategy:
12+
matrix:
13+
Python35:
14+
python.version: '3.5'
15+
Python36:
16+
python.version: '3.6'
17+
Python37:
18+
python.version: '3.7'
19+
maxParallel: 4
20+
21+
steps:
22+
- task: UsePythonVersion@0
23+
inputs:
24+
versionSpec: '$(python.version)'
25+
architecture: 'x64'
26+
27+
- script: python -m pip install --upgrade pip && pip install -r requirements.txt
28+
displayName: 'Install dependencies'
29+
30+
- script: pip install -ve .
31+
displayName: "Install self"
32+
33+
- script: |
34+
35+
pip install pytest
36+
pytest --junitxml=junit/test-results.xml
37+
displayName: 'pytest'
38+
39+
- task: PublishTestResults@2
40+
inputs:
41+
testResultsFiles: '**/test-results.xml'
42+
testRunTitle: 'Python $(python.version)'
43+
condition: succeededOrFailed()
44+

0 commit comments

Comments
 (0)