-
Notifications
You must be signed in to change notification settings - Fork 3
/
azure-pipelines.yml
95 lines (77 loc) · 1.91 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
trigger:
branches:
include:
- master
jobs:
- job: 'StyleCheck'
pool:
vmImage: 'ubuntu-latest'
steps:
- task: UsePythonVersion@0
inputs:
versionSpec: '3.11'
architecture: 'x64'
- script: |
python -m pip install --upgrade pip
python -m pip install flake8
displayName: 'Install build dependencies'
- script: |
flake8
displayName: 'Run style check'
- job: 'Test'
dependsOn: StyleCheck
strategy:
matrix:
Linux-py3.11:
imageName: 'ubuntu-latest'
pythonVersion: '3.11'
Linux-py3.10:
imageName: 'ubuntu-latest'
pythonVersion: '3.10'
Linux-py3.9:
imageName: 'ubuntu-latest'
pythonVersion: '3.9'
Linux-py3.8:
imageName: 'ubuntu-latest'
pythonVersion: '3.8'
macOS-py3.11:
imageName: 'macos-latest'
pythonVersion: '3.11'
macOS-py3.10:
imageName: 'macos-latest'
pythonVersion: '3.10'
macOS-py3.9:
imageName: 'macos-latest'
pythonVersion: '3.9'
macOS-py3.8:
imageName: 'macos-latest'
pythonVersion: '3.8'
Windows-py3.11:
imageName: 'windows-latest'
pythonVersion: '3.11'
Windows-py3.10:
imageName: 'windows-latest'
pythonVersion: '3.10'
Windows-py3.9:
imageName: 'windows-latest'
pythonVersion: '3.9'
Windows-py3.8:
imageName: 'windows-latest'
pythonVersion: '3.8'
pool:
vmImage: $(imageName)
steps:
- task: UsePythonVersion@0
inputs:
versionSpec: '$(pythonVersion)'
architecture: 'x64'
- script: |
python -m pip install --upgrade pip
python -m pip install -r requirements-dev.txt
displayName: 'Install build dependencies'
- script: |
python -m pip install -e .
displayName: 'Install hdmf-docutils'
- script: |
pytest
displayName: 'Run tests'