-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathazure-pipelines.yml
50 lines (40 loc) · 1.16 KB
/
azure-pipelines.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
trigger:
- master
strategy:
matrix:
Python36-ubuntu:
python.version: '3.6'
imageName: 'ubuntu-latest'
Python37-ubuntu:
python.version: '3.7'
imageName: 'ubuntu-latest'
Python36-macos:
python.version: '3.6'
imageName: 'macOS-latest'
Python37-maOS:
python.version: '3.7'
imageName: 'macOS-latest'
Python36-windows:
python.version: '3.6'
imageName: 'windows-latest'
Python37-windows:
python.version: '3.7'
imageName: 'windows-latest'
pool:
vmImage: $(imageName)
steps:
- task: UsePythonVersion@0
displayName: 'Use Python $(python.version)'
inputs:
versionSpec: '$(python.version)'
- script: |
pip install --upgrade pip setuptools wheel
pip install -r requirements.txt
pip install -e ".[test]"
pytest --cov=aioload --doctest-modules --junitxml=junit/test-results.xml --cov-report=xml --cov-report=html
displayName: 'Run tests'
- task: PublishTestResults@2
condition: succeededOrFailed()
inputs:
testResultsFiles: '**/test-*.xml'
testRunTitle: 'Publish test results in $(imageName) for Python $(python.version)'