forked from pydata/xarray
-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-pipelines.yml
126 lines (116 loc) · 2.71 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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
variables:
pytest_extra_flags: ''
allow_failure: false
upstream_dev: false
jobs:
- job: Linux
strategy:
matrix:
py36-bare-minimum:
conda_env: py36-bare-minimum
py36-min-all-deps:
conda_env: py36-min-all-deps
py36-min-nep18:
conda_env: py36-min-nep18
py36:
conda_env: py36
py37:
conda_env: py37
py38:
conda_env: py38
py38-backend-api-v2:
conda_env: py38
environment_variables: XARRAY_BACKEND_API=v2
py38-all-but-dask:
conda_env: py38-all-but-dask
py38-upstream-dev:
conda_env: py38
upstream_dev: true
allow_failure: true
py38-flaky:
conda_env: py38
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:
py38:
conda_env: py38
pool:
vmImage: 'macOS-10.15'
steps:
- template: ci/azure/unit-tests.yml
- job: Windows
strategy:
matrix:
py37:
conda_env: py37-windows
pool:
vmImage: 'windows-2019'
steps:
- template: ci/azure/unit-tests.yml
- job: LintFlake8
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: FormattingBlack
pool:
vmImage: 'ubuntu-16.04'
steps:
- task: UsePythonVersion@0
- bash: python -m pip install black
displayName: Install black
- bash: black --check .
displayName: black formatting check
- job: Doctests
variables:
conda_env: py38
pool:
vmImage: 'ubuntu-16.04'
steps:
- template: ci/azure/install.yml
- bash: |
source activate xarray-tests
python -m pytest --doctest-modules xarray --ignore xarray/tests
displayName: Run doctests
- job: TypeChecking
variables:
conda_env: py38
pool:
vmImage: 'ubuntu-16.04'
steps:
- template: ci/azure/install.yml
- bash: |
source activate xarray-tests
mypy .
displayName: mypy type checks
- job: isort
variables:
conda_env: py38
pool:
vmImage: 'ubuntu-16.04'
steps:
- template: ci/azure/install.yml
- bash: |
source activate xarray-tests
isort --check .
displayName: isort formatting checks
- job: MinimumVersionsPolicy
pool:
vmImage: 'ubuntu-16.04'
steps:
- template: ci/azure/add-conda-to-path.yml
- bash: |
conda install -y pyyaml
python ci/min_deps_check.py ci/requirements/py36-bare-minimum.yml
python ci/min_deps_check.py ci/requirements/py36-min-all-deps.yml
displayName: minimum versions policy