-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathazure-pipelines-test.yml
44 lines (36 loc) · 1.04 KB
/
azure-pipelines-test.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
parameters:
name:
vmImage:
python.architecture: x64
jobs:
- job: ${{ parameters.name }}
displayName: ${{ parameters.name }} Tests
dependsOn: Package
pool:
vmImage: ${{ parameters.vmImage }}
strategy:
matrix:
Python36:
python.version: 3.6
Python37:
python.version: 3.7
maxParallel: 4
steps:
- task: UsePythonVersion@0
inputs:
versionSpec: $(python.version)
architecture: ${{ parameters['python.architecture'] }}
displayName: "Use Python $(python.version)"
- task: DownloadPipelineArtifact@0
inputs:
artifactName: dist
targetPath: $(Build.BinariesDirectory)/dist
displayName: "Download built package"
- script: pip install reportabug --find-links "$(Build.BinariesDirectory)/dist"
displayName: "Install reportabug"
- script: reportabug reportabug
displayName: "Self-test and system info"
- script: pip install pytest-azurepipelines && pytest --test-run-title="${{ parameters.name }}"
env:
REPORTABUG_CI: true
displayName: "Unit tests"