-
Notifications
You must be signed in to change notification settings - Fork 2
/
azure-pipelines.yml
65 lines (57 loc) · 1.16 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
name: $(BuildDefinitionName)_$(SourceBranchName)_$(Date:yyyyMMdd)$(Rev:.r)
trigger:
batch: true
branches:
include:
- '*'
pr:
autoCancel: true
branches:
include:
- '*'
schedules:
- cron: 0 0 * * *
displayName: Daily build
branches:
include:
- main
always: true
pool:
vmImage: $(vmImage)
strategy:
matrix:
linux37:
versionSpec: '3.7'
vmImage: ubuntu-latest
linux38:
versionSpec: '3.8'
vmImage: ubuntu-latest
linux39:
versionSpec: '3.9'
vmImage: ubuntu-latest
linux310:
versionSpec: '3.10'
vmImage: ubuntu-latest
windows37:
versionSpec: '3.7'
vmImage: windows-latest
windows38:
versionSpec: '3.8'
vmImage: windows-latest
windows39:
versionSpec: '3.9'
vmImage: windows-latest
windows310:
versionSpec: '3.10'
vmImage: windows-latest
steps:
- task: UsePythonVersion@0
inputs:
versionSpec: $(versionSpec)
displayName: python$(versionSpec)
- script: |
python -m pip install --upgrade pip
python -m pip install . .[test]
displayName: pip
- script: pytest
displayName: pytest tests