@@ -32,6 +32,8 @@ stages:
3232- stage : Main
3333 condition : and(succeeded(), eq(dependencies.Check.outputs['Skip.result.start_main'], 'true'))
3434 dependsOn : Check
35+ variables :
36+ AZURE_CI : ' true'
3537 jobs :
3638 - job : Style
3739 pool :
@@ -112,6 +114,13 @@ stages:
112114 python -m pip install --upgrade pip setuptools
113115 python -m pip install --upgrade numpy scipy vtk -r requirements.txt -r requirements_testing.txt codecov
114116 displayName: 'Install dependencies with pip'
117+ - bash : source tools/get_testing_version.sh
118+ displayName : ' Get testing version'
119+ - task : Cache@2
120+ inputs :
121+ key : $(testing_version)
122+ path : /home/vsts/mne_data
123+ displayName : ' Cache testing data'
115124 - script : python -c "import mne; mne.datasets.testing.data_path(verbose=True)"
116125 displayName : ' Get test data'
117126 - script : pytest -m "ultraslowtest" --tb=short --cov=mne -vv mne
@@ -148,6 +157,13 @@ stages:
148157 displayName: 'Install dependencies'
149158 - script : mne sys_info
150159 displayName : ' Print config and test access to commands'
160+ - bash : source tools/get_testing_version.sh
161+ displayName : ' Get testing version'
162+ - task : Cache@2
163+ inputs :
164+ key : $(testing_version)
165+ path : /home/vsts/mne_data
166+ displayName : ' Cache testing data'
151167 - script : python -c "import mne; mne.datasets.testing.data_path(verbose=True)"
152168 displayName : ' Get test data'
153169 - script : pytest --tb=short --cov=mne -vv mne/viz
@@ -245,6 +261,13 @@ stages:
245261 displayName : ' Print config and test access to commands'
246262 - script : python -c "import numpy; numpy.show_config()"
247263 displayName : Print NumPy config
264+ - bash : source tools/get_testing_version.sh
265+ displayName : ' Get testing version'
266+ - task : Cache@2
267+ inputs :
268+ key : $(testing_version)
269+ path : C:\Users\VssAdministrator\mne_data
270+ displayName : ' Cache testing data'
248271 - script : python -c "import mne; mne.datasets.testing.data_path(verbose=True)"
249272 displayName : ' Get test data'
250273 - script : pytest -m "not slowtest" --tb=short --cov=mne -vv mne
0 commit comments