Skip to content

Commit 087b4f8

Browse files
committed
CI: Add conda cache
1 parent 2660c92 commit 087b4f8

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

.github/workflows/azure-pipelines.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,15 @@ jobs:
2222
- name: Checkout
2323
uses: actions/checkout@v1
2424

25+
- name: Cache conda
26+
uses: actions/cache@v1
27+
env:
28+
# Increase this value to reset cache if environment.yml has not changed
29+
CACHE_NUMBER: 0
30+
with:
31+
path: ~/conda_pkgs_dir
32+
key: ${{ runner.os }}-conda-${{ matrix.python }}-${{ env.CACHE_NUMBER }}-${{ hashFiles('environment.yml') }}
33+
2534
- uses: conda-incubator/setup-miniconda@v2
2635
with:
2736
auto-update-conda: true

0 commit comments

Comments
 (0)