-
Notifications
You must be signed in to change notification settings - Fork 2
/
azure-pipelines.yml
58 lines (47 loc) · 1.04 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
trigger:
- release-*
pr:
branches:
include:
- main
- stable
jobs:
- template: azure-coretest.yml
parameters:
pythons:
py38:
spec: '3.8'
py39:
spec: '3.9'
py310:
spec: '3.10'
py311:
spec: '3.11'
py312:
spec: '3.12'
platforms: [linux, windows, macOs]
- template: azure-sdisttest.yml
- job: flake8
pool:
vmImage: 'Ubuntu-latest'
steps:
- task: UsePythonVersion@0
inputs:
versionSpec: '3.11'
- script: pip install -U tox
displayName: Install tox
- script: tox -e flake8
displayName: Lint the codebase
- job: testdir_coverage
pool:
vmImage: 'Ubuntu-latest'
steps:
- task: UsePythonVersion@0
inputs:
versionSpec: '3.11'
- script: pip install -r requirements-ci.txt
displayName: Install CI requirements
- script: pytest --cov
displayName: Run pytest with coverage
- script: coverage report --include="tests/*" --fail-under=100
displayName: Check 100% test execution