Skip to content

Commit 60a3265

Browse files
authored
Merge pull request #23 from minrk/conda-clean
clear mamba package cache
2 parents 9ae5041 + f7bceb4 commit 60a3265

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

.github/actions/install-dependencies/action.yml

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,6 @@ runs:
2222
use-mamba: true
2323
# uncomment to install env in one go (without caching)
2424
# environment-file: environment.yml
25-
# needed for caching
26-
use-only-tar-bz2: true
2725

2826
- name: Get Date
2927
id: get-date
@@ -36,10 +34,21 @@ runs:
3634
with:
3735
path: ${{ env.CONDA }}/envs/mpi-tutorial
3836
key:
39-
conda-env-${{ steps.get-date.outputs.today }}-${{ inputs.python-version }}-${{ hashFiles('environment.yml') }}
37+
conda-env-${{ steps.get-date.outputs.today }}-${{ inputs.python-version }}-${{ hashFiles('environment.yml') }}-${{ hashFiles('.github/actions/install-dependencies/**') }}
4038

39+
- name: Clear package cache
40+
# package cache seems to be stale
41+
run:
42+
mamba clean -y --index-cache
43+
44+
shell: bash -el {0}
4145
- name: Update environment
4246
if: steps.cache-env.outputs.cache-hit != 'true'
4347
run:
4448
mamba env update -n mpi-tutorial -f environment.yml
4549
shell: bash -el {0}
50+
51+
- name: List environment
52+
run:
53+
mamba list -n mpi-tutorial
54+
shell: bash -el {0}

0 commit comments

Comments
 (0)