Skip to content

Commit dae0a03

Browse files
committed
BLD: Add conda cache to Windows azure CI
1 parent 012b7c6 commit dae0a03

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

ci/azure/windows.yml

+10-1
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,19 @@ jobs:
4343
displayName: 'Add conda to PATH'
4444
- script: conda update -q -n base conda
4545
displayName: 'Update conda'
46-
46+
- task: Cache@2
47+
displayName: Use cached Anaconda environment
48+
inputs:
49+
key: 'conda | "$(Agent.OS)" | "$(ENV_FILE)"'
50+
restoreKeys: |
51+
python | "$(Agent.OS)"
52+
python
53+
path: $(CONDA_CACHE_DIR)
54+
cacheHitVar: CONDA_CACHE_RESTORED
4755
- bash: |
4856
conda env create -q --file ci\\deps\\azure-windows-$(CONDA_PY).yaml
4957
displayName: 'Create anaconda environment'
58+
condition: eq(variables.CONDA_CACHE_RESTORED, 'false')
5059
- bash: |
5160
source activate pandas-dev
5261
conda list

0 commit comments

Comments
 (0)