forked from sunpy/sunkit-image
-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-templates.yml
44 lines (36 loc) · 1.22 KB
/
azure-templates.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
jobs:
- job: ${{ format(parameters.name) }}
pool:
${{ if eq(parameters.os, 'windows') }}:
vmImage: vs2017-win2016
${{ if eq(parameters.os, 'macos') }}:
vmImage: macOS 10.13
${{ if eq(parameters.os, 'linux') }}:
vmImage: Ubuntu 16.04
steps:
- task: UsePythonVersion@0
inputs:
versionSpec: '3.6'
- task: UsePythonVersion@0
inputs:
versionSpec: '3.7'
- script: pip install --upgrade tox
displayName: install tox
- script: tox -e ${{ parameters.tox }} --junitxml=junit/test-results.xml --cov-report=xml --cov-report=html
displayName: run tox
- script: |
pip install --upgrade codecov
codecov --name ${{ format(parameters.name) }}
displayName: run codecov
condition: succeededOrFailed()
- task: PublishTestResults@2
condition: succeededOrFailed()
inputs:
testResultsFiles: '**/test-*.xml'
testRunTitle: 'Publish test results for ${{ format(parameters.name) }}'
- task: PublishCodeCoverageResults@1
condition: succeededOrFailed()
inputs:
codeCoverageTool: Cobertura
summaryFileLocation: '$(System.DefaultWorkingDirectory)/**/coverage.xml'
reportDirectory: '$(System.DefaultWorkingDirectory)/**/htmlcov'