Skip to content

Commit 51ef0fd

Browse files
authored
CI cache data directory (#878)
1 parent a376fa6 commit 51ef0fd

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

build_tools/azure/posix.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ jobs:
2020
OPENBLAS_NUM_THREADS: '2'
2121
CPU_COUNT: '2'
2222
SKLEARN_SKIP_NETWORK_TESTS: '1'
23+
SKLEARN_DATA_DIR: $(System.DefaultWorkingDirectory)/scikit_learn_data
2324
CCACHE_DIR: $(Pipeline.Workspace)/ccache
2425
CCACHE_COMPRESS: '1'
2526
NUMPY_VERSION: 'latest'
@@ -49,6 +50,12 @@ jobs:
4950
- bash: sudo chown -R $USER $CONDA
5051
displayName: Take ownership of conda installation
5152
condition: startsWith(variables['DISTRIB'], 'conda')
53+
- task: Cache@2
54+
inputs:
55+
key: '"$(Agent.JobName)"'
56+
path: $(SKLEARN_DATA_DIR)
57+
displayName: Dataset caching
58+
continueOnError: true
5259
- task: Cache@2
5360
inputs:
5461
key: '"$(Agent.JobName)"'

0 commit comments

Comments
 (0)