-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathazure-pipelines.yml
61 lines (61 loc) · 1.85 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
trigger:
- master
jobs:
- job: Linux
pool:
vmImage: 'ubuntu-latest'
strategy:
matrix:
Python310:
python.version: '3.10'
steps:
- task: UsePythonVersion@0
inputs:
versionSpec: '$(python.version)'
displayName: 'Use Python $(python.version)'
- script: |
pip install -U pytest pytest-cov pytest-repeat
pip install -U flake8 flake8-blind-except flake8-builtins flake8-class-newline flake8-comprehensions flake8-deprecated flake8-docstrings flake8-import-order flake8-quotes pep8-naming pylint
pip install -U mypy
pip install -U codecov
displayName: 'Install test dependencies'
- script: |
python -m pytest --cov=dco_check --cov-branch --cov-report=xml
displayName: 'Run tests'
- script: |
codecov
displayName: 'Upload coverage'
env:
CODECOV_TOKEN: $(CODECOV_TOKEN)
- script: |
python dco_check/dco_check.py --verbose
displayName: 'Check DCO'
- job: Windows
pool:
vmImage: 'windows-latest'
strategy:
matrix:
Python310:
python.version: '3.10'
steps:
- task: UsePythonVersion@0
inputs:
versionSpec: '$(python.version)'
displayName: 'Use Python $(python.version)'
- script: |
pip install -U pytest pytest-cov pytest-repeat
pip install -U flake8 flake8-blind-except flake8-builtins flake8-class-newline flake8-comprehensions flake8-deprecated flake8-docstrings flake8-import-order flake8-quotes pep8-naming pylint
pip install -U mypy
pip install -U codecov
displayName: 'Install test dependencies'
- script: |
python -m pytest --cov=dco_check --cov-branch --cov-report=xml
displayName: 'Run tests'
- script: |
codecov
displayName: 'Upload coverage'
env:
CODECOV_TOKEN: $(CODECOV_TOKEN)
- script: |
python dco_check/dco_check.py --verbose
displayName: 'Check DCO'