forked from pydata/xarray
-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-pipelines.yml
94 lines (86 loc) · 1.82 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
variables:
pytest_extra_flags: ''
allow_failure: false
upstream_dev: false
jobs:
- job: Linux
strategy:
matrix:
py35-min:
conda_env: py35-min
py36:
conda_env: py36
py37:
conda_env: py37
py37-upstream-dev:
conda_env: py37
upstream_dev: true
py36-flakey:
conda_env: py36
pytest_extra_flags: --run-flaky --run-network-tests
allow_failure: true
pool:
vmImage: 'ubuntu-16.04'
steps:
- template: ci/azure/unit-tests.yml
- job: MacOSX
strategy:
matrix:
py36:
conda_env: py36
pool:
vmImage: 'macOS-10.13'
steps:
- template: ci/azure/unit-tests.yml
- job: Windows
strategy:
matrix:
py37:
conda_env: py37-windows
pool:
vmImage: 'vs2017-win2016'
steps:
- template: ci/azure/unit-tests.yml
- job: Lint
pool:
vmImage: 'ubuntu-16.04'
steps:
- task: UsePythonVersion@0
- bash: python -m pip install flake8
displayName: Install flake8
- bash: flake8
displayName: flake8 lint checks
- job: TypeChecking
variables:
conda_env: py37
pool:
vmImage: 'ubuntu-16.04'
steps:
- template: ci/azure/install.yml
- bash: |
source activate test_env
mypy . || exit 0
displayName: mypy type checks
- job: Docs
pool:
vmImage: 'ubuntu-16.04'
steps:
- template: ci/azure/install.yml
parameters:
env_file: doc/environment.yml
- bash: |
source activate test_env
cd doc
sphinx-build -n -j auto -b html -d _build/doctrees . _build/html
displayName: Build HTML docs
- job: LinuxHypothesis
variables:
conda_env: py36-hypothesis
pool:
vmImage: 'ubuntu-16.04'
steps:
- template: ci/azure/install.yml
- bash: |
source activate test_env
pytest properties
displayName: Property based tests