Skip to content

Commit bf2126f

Browse files
committed
Cache conda packages
1 parent 80c6508 commit bf2126f

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

.github/workflows/ci_tests.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,21 @@ jobs:
3030
# fecth all history so that versioneer works
3131
fetch-depth: 0
3232

33+
- name: Cache conda packages
34+
uses: actions/cache@v2
35+
with:
36+
path: ${CONDA_PKGS_DIRS}
37+
key: cache-conda-${{ github.ref }}-${{ hashFiles('environment.yml') }}
38+
restore-keys: |
39+
cache-conda-refs/heads/master-
40+
3341
# Setup Miniconda
3442
- name: Setup Miniconda
3543
uses: goanpeca/[email protected]
3644
with:
3745
python-version: ${{ matrix.python-version }}
3846
channels: conda-forge
47+
use-only-tar-bz2: true # required for caching conda pacakges
3948

4049
# Install GMT and other required dependencies from conda-forge
4150
- name: Install GMT and required dependencies

0 commit comments

Comments
 (0)