forked from mne-tools/mne-python
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathazure-pipelines.yml
More file actions
234 lines (228 loc) · 7.89 KB
/
azure-pipelines.yml
File metadata and controls
234 lines (228 loc) · 7.89 KB
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
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
trigger:
# start a new build for every push
batch: False
branches:
include:
- 'master'
- 'maint/*'
pr:
branches:
include:
- '*' # must quote since "*" is a YAML reserved character; we want a string
jobs:
- job: Style
pool:
vmImage: 'ubuntu-18.04'
strategy:
matrix:
Python37-64bit-fast:
PYTHON_VERSION: '3.7'
PYTHON_ARCH: 'x64'
steps:
- task: UsePythonVersion@0
inputs:
versionSpec: $(PYTHON_VERSION)
architecture: $(PYTHON_ARCH)
addToPath: true
displayName: 'Get Python'
- bash: |
python -m pip install --upgrade pip setuptools
python -m pip install numpy scipy matplotlib sphinx pytest pytest-cov pytest-timeout pytest-sugar flake8
displayName: Install dependencies
condition: always()
- bash: |
make flake
displayName: make flake
condition: always()
- bash: |
pip install pydocstyle
displayName: Install pydocstyle
condition: always()
- bash: |
make pydocstyle
displayName: make pydocstyle
condition: always()
- bash: |
pip install https://github.com/codespell-project/codespell/zipball/master
displayName: Install latest codespell
condition: always()
- bash: |
make codespell-error
displayName: make codespell-error
condition: always()
- bash: |
pip install https://github.com/numpy/numpydoc/archive/master.zip pytest pytest-cov pytest-timeout pytest-sugar
displayName: Install NumpyDoc validation
condition: always()
- bash: |
make docstring
displayName: make docstring
- bash: |
make nesting
displayName: make nesting
condition: always()
- bash: |
pip install check-manifest
displayName: Install manifest checker
condition: always()
- bash: |
make check-manifest
displayName: make check-manifest
condition: always()
- bash: |
pip install twine wheel
displayName: Install twine
condition: always()
- bash: |
make check-readme
displayName: make check-readme
condition: always()
- job: Ultraslow
pool:
vmImage: 'ubuntu-18.04'
variables:
DISPLAY: ':99'
OPENBLAS_NUM_THREADS: '1'
steps:
- bash: |
sudo apt install libxkbcommon-x11-0 xvfb tcsh
displayName: 'Install Ubuntu dependencies'
- bash: |
source tools/get_minimal_commands.sh
echo "##vso[task.setvariable variable=MNE_ROOT]${MNE_ROOT}"
echo "##vso[task.setvariable variable=PATH]${PATH}"
echo "##vso[task.setvariable variable=LD_LIBRARY_PATH]${LD_LIBRARY_PATH}"
echo "##vso[task.setvariable variable=NEUROMAG2FT_ROOT]${NEUROMAG2FT_ROOT}"
echo "##vso[task.setvariable variable=FREESURFER_HOME]${FREESURFER_HOME}"
echo "##vso[task.setvariable variable=MNE_SKIP_FS_FLASH_CALL]${MNE_SKIP_FS_FLASH_CALL}"
displayName: 'Install minimal commands'
- bash: |
echo $PATH
mne_surf2bem --version
fsl_rigid_register --version
displayName: 'Test minimal commands'
- task: UsePythonVersion@0
inputs:
versionSpec: '3.7'
architecture: 'x64'
addToPath: true
displayName: 'Get Python'
- bash: |
/sbin/start-stop-daemon --start --quiet --pidfile /tmp/custom_xvfb_99.pid --make-pidfile --background --exec /usr/bin/Xvfb -- :99 -screen 0 1400x900x24 -ac +extension GLX +render -noreset;
displayName: 'Spin up Xvfb'
- bash: |
set -e
pip install --upgrade numpy scipy vtk
pip install --upgrade -r requirements.txt
pip install codecov
displayName: 'Install dependencies with pip'
- script: python -c "import mne; mne.datasets.testing.data_path(verbose=True)"
displayName: 'Get test data'
- script: pytest -m "ultraslowtest" --tb=short --cov=mne -n 1 mne
displayName: 'Run ultraslow tests'
- script: codecov --root %BUILD_REPOSITORY_LOCALPATH% -t %CODECOV_TOKEN%
displayName: 'Codecov'
env:
CODECOV_TOKEN: $(CODECOV_TOKEN)
condition: always()
- task: PublishTestResults@2
inputs:
testResultsFiles: 'junit-*.xml'
testRunTitle: 'Publish test results for Python $(python.version)'
condition: always()
- job: Windows
pool:
vmImage: 'VS2017-Win2016'
variables:
MNE_LOGGING_LEVEL: 'warning'
MNE_FORCE_SERIAL: 'true'
OPENBLAS_NUM_THREADS: 1
MKL_NUM_THREADS: 1
AZURE_CI_WINDOWS: 'true'
CONDA_VERSION: '>=4.3.27'
strategy:
maxParallel: 4
matrix:
3.7 conda:
PLATFORM: 'x86-64'
TEST_MODE: 'conda'
CONDA_ENV: 'environment.yml'
PIP_NO_UPGRADE: 'True'
PYTHON_VERSION: '3.7'
3.7 pip:
PYTHON_ARCH: 'x64'
TEST_MODE: 'pip'
PYTHON_VERSION: '3.7'
3.8 pip pre:
PYTHON_ARCH: 'x64'
TEST_MODE: 'pre-pip'
PYTHON_VERSION: '3.8'
steps:
- task: UsePythonVersion@0
inputs:
versionSpec: $(PYTHON_VERSION)
architecture: $(PYTHON_ARCH)
addToPath: true
condition: in(variables['TEST_MODE'], 'pip', 'pre-pip')
displayName: 'Get Python'
- bash: |
set -e
git clone --depth 1 git://github.com/pyvista/gl-ci-helpers.git
powershell gl-ci-helpers/appveyor/install_opengl.ps1
displayName: Install OpenGL
- bash: |
set -e
pip install --upgrade numpy scipy vtk
pip install --upgrade -r requirements.txt
pip install codecov
pip uninstall -yq pysurfer mayavi
condition: eq(variables['TEST_MODE'], 'pip')
displayName: 'Install dependencies with pip'
# VTK does not have wheels (scheduled Q1 2020):
# https://github.com/KitwareMedical/VTKPythonPackage/issues/39
# Missing: vtk, mayavi, PySurfer, pyvista, numexpr, python-picard, numba, dipy, statsmodels (doesn't work on pre as of 2019/12/04)
- bash: |
set -e
python -m pip install --upgrade pip setuptools
python -m pip install --upgrade --pre --only-binary ":all:" -f "https://7933911d6844c6c53a7d-47bd50c35cd79bd838daf386af554a83.ssl.cf2.rackcdn.com" numpy scipy scikit-learn matplotlib h5py pandas Pillow
python -m pip install --upgrade nilearn "pyqt5<5.14" pyqt5-sip nibabel pytest pytest-cov pytest-xdist pytest-mock pytest-sugar pytest-timeout joblib psutil https://github.com/numpy/numpydoc/archive/master.zip neo xlrd codecov
python -m pip install codecov
condition: eq(variables['TEST_MODE'], 'pre-pip')
displayName: 'Install dependencies with pip --pre'
- powershell: |
Set-StrictMode -Version Latest
$ErrorActionPreference = "Stop"
$PSDefaultParameterValues['*:ErrorAction']='Stop'
$env:PYTHON = '$(System.DefaultWorkingDirectory)' + '\conda'
git clone git://github.com/astropy/ci-helpers.git
powershell ci-helpers/appveyor/install-miniconda.ps1
$env:PATH = $env:PYTHON + ";" + $env:PYTHON + "\Scripts;" + $env:PYTHON + "\Library\bin;" + $env:PATH
conda env list
conda install numpy scipy matplotlib scikit-learn
conda env update --file $env:CONDA_ENV
pip uninstall -yq mne
pip install codecov
pip uninstall -yq pysurfer mayavi
Write-Host ("##vso[task.setvariable variable=PATH]" + $env:PATH)
condition: eq(variables['TEST_MODE'], 'conda')
displayName: 'Install dependencies with conda'
- script: python setup.py develop
displayName: 'Install MNE-Python dev'
- script: mne sys_info
displayName: 'Print config and test access to commands'
- script: python -c "import numpy; numpy.show_config()"
displayName: Print NumPy config
- script: python -c "import mne; mne.datasets.testing.data_path(verbose=True)"
displayName: 'Get test data'
- script: pytest -m "not ultraslowtest" --tb=short --cov=mne -n 1 mne
displayName: 'Run tests'
- script: codecov --root %BUILD_REPOSITORY_LOCALPATH% -t %CODECOV_TOKEN%
displayName: 'Codecov'
env:
CODECOV_TOKEN: $(CODECOV_TOKEN)
condition: always()
- task: PublishTestResults@2
inputs:
testResultsFiles: 'junit-*.xml'
testRunTitle: 'Publish test results for Python $(python.version)'
condition: always()