-
Notifications
You must be signed in to change notification settings - Fork 22
Expand file tree
/
Copy pathazure-pipelines-vms.yml
More file actions
41 lines (34 loc) · 1.05 KB
/
Copy pathazure-pipelines-vms.yml
File metadata and controls
41 lines (34 loc) · 1.05 KB
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
# Controlled by the azure-pipelines.yml for different running environments.
parameters:
name: ''
vmImage: ''
matrix: []
jobs:
- job: ${{ parameters.name }}
pool:
vmImage: ${{ parameters.vmImage }}
strategy:
matrix:
${{ insert }}: ${{ parameters.matrix }}
steps:
- task: UsePythonVersion@0
inputs:
versionSpec: '$(python.version)'
displayName: 'Use Python $(python.version)'
- script: |
python -m pip install --upgrade pip setuptools wheel
pip install .[tests]
displayName: 'Install package and test dependencies'
- script: |
pip install pytest-azurepipelines
pytest --junitxml=test-results.xml --cov-report=xml
displayName: 'pytest'
- script: tox -e cov4
displayName: 'Tox: Coverage v4 test'
- script: tox -e help
displayName: 'Tox: help output'
- task: PublishTestResults@2
condition: succeededOrFailed()
inputs:
testResultsFiles: 'test-results.xml'
testRunTitle: 'Publish test results for Python $(python.version)'