Skip to content

Commit 5583721

Browse files
committed
CI: Cache conda packages
1 parent 4c08fab commit 5583721

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.github/workflows/pythonpackage.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,14 @@ jobs:
6464

6565
steps:
6666
- uses: actions/checkout@v4
67+
- uses: actions/cache@v4
68+
with:
69+
path: ~/conda_pkgs_dir
70+
key: ${{ runner.os }}-conda-${{ matrix.python-version }}-${{ env.CACHE_NUMBER }}
71+
env:
72+
# Bump to reset cache
73+
CACHE_NUMBER: 0
74+
id: cache
6775
- name: Set up Python ${{ matrix.python-version }}
6876
uses: conda-incubator/setup-miniconda@v3
6977
with:

0 commit comments

Comments
 (0)