/
azure-pipelines.yml
103 lines (84 loc) · 2.46 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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
trigger:
- master
jobs:
- job: linux
strategy:
matrix:
py37:
python.version: "3.7"
py38:
python.version: "3.8"
py39:
python.version: "3.9"
pool:
vmImage: ubuntu-latest
steps:
- task: UsePythonVersion@0
inputs:
versionSpec: '$(python.version)'
displayName: 'Use Python $(python.version)'
- script: |
python -m pip install --upgrade pip
pip install pandas pandas-flavor pytest pytest-azurepipelines pytest-cov toml
displayName: 'Install dependencies'
- script: |
pytest --junitxml=junit/test-results.xml --cov=neat_panda tests --cov-report=xml --cov-report=html
displayName: 'run tests'
- task: PublishTestResults@2
condition: succeededOrFailed()
inputs:
testResultsFiles: '**/test-*.xml'
testRunTitle: 'Publish test results for Python $(python.version)'
- task: PublishCodeCoverageResults@1
inputs:
codeCoverageTool: Cobertura
summaryFileLocation: '$(System.DefaultWorkingDirectory)/**/coverage.xml'
reportDirectory: '$(System.DefaultWorkingDirectory)/**/htmlcov'
#####################################
- job: macos
pool:
vmImage: macOS-10.14
strategy:
matrix:
Python37:
python.version: '3.7'
Python38:
python.version: '3.8'
Python39:
python.version: '3.9'
steps:
- task: UsePythonVersion@0
inputs:
versionSpec: '$(python.version)'
displayName: 'Use Python $(python.version)'
- script: |
python -m pip install --upgrade pip
pip install pandas pandas-flavor pytest pytest-azurepipelines toml
displayName: 'Install dependencies'
- script: |
pytest
displayName: 'run tests'
#############################################
- job: windows
pool:
vmImage: vs2017-win2016
strategy:
matrix:
Python37:
python.version: '3.7'
Python38:
python.version: '3.8'
Python39:
python.version: '3.9'
steps:
- task: UsePythonVersion@0
inputs:
versionSpec: '$(python.version)'
displayName: 'Use Python $(python.version)'
- script: |
python -m pip install --upgrade pip
pip install pandas pandas-flavor pytest pytest-azurepipelines toml
displayName: 'Install dependencies'
- script: |
pytest
displayName: 'run tests'