-
Notifications
You must be signed in to change notification settings - Fork 4
/
azure-pipelines.yml
58 lines (49 loc) · 1.39 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
51
52
53
54
55
56
57
58
trigger:
- master
jobs:
- job: 'Test'
strategy:
matrix:
Linux_Python36:
imageName: 'ubuntu-latest'
python.version: '3.6'
Linux_Python39:
imageName: 'ubuntu-latest'
python.version: '3.9'
MacOS_Python36:
imageName: 'macos-latest'
python.version: '3.6'
MacOS_Python39:
imageName: 'macos-latest'
python.version: '3.9'
Windows_Python36:
imageName: 'windows-latest'
python.version: '3.6'
Windows_Python39:
imageName: 'windows-latest'
python.version: '3.9'
pool:
vmImage: $(imageName)
steps:
- task: UsePythonVersion@0
inputs:
versionSpec: '$(python.version)'
architecture: 'x64'
- script: python -m pip install --upgrade pip && pip install .[celery,redis,dev]
displayName: 'Install dependencies'
- script: |
python setup.py lint
displayName: 'Run lint tests'
- script: |
python setup.py test
displayName: 'Run pytest tests'
- task: PublishTestResults@2
inputs:
testResultsFiles: '**/test-results.xml'
testRunTitle: 'Python $(python.version)'
condition: succeededOrFailed()
- task: PublishCodeCoverageResults@1
inputs:
codeCoverageTool: Cobertura
summaryFileLocation: '$(System.DefaultWorkingDirectory)/**/coverage.xml'
reportDirectory: '$(System.DefaultWorkingDirectory)/**/htmlcov'