Skip to content
This repository has been archived by the owner on Jan 17, 2023. It is now read-only.

Commit

Permalink
Add conda pkgs caching to GHA CI workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
douglatornell committed Jun 9, 2021
1 parent 0fc6054 commit 57aedbd
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/pytest-coverage.yaml
Expand Up @@ -20,6 +20,15 @@ jobs:
steps:
- uses: actions/checkout@v2

- name: Cache conda pkgs
uses: actions/cache@v1
env:
# Increase this value to reset cache if envs/environment-test.yaml has not changed
CACHE_NUMBER: 0
with:
path: ~/conda_pkgs_dir
key: ${{ runner.os }}-conda-${{ env.CACHE_NUMBER }}-${{ hashFiles('envs/environment-test.yaml') }}

- uses: conda-incubator/setup-miniconda@v2
with:
auto-update-conda: true
Expand Down

0 comments on commit 57aedbd

Please sign in to comment.