Skip to content

Commit

Permalink
Add cache to reduce conda startup time
Browse files Browse the repository at this point in the history
  • Loading branch information
adamrtalbot committed Dec 5, 2023
1 parent 80c5c11 commit fe84833
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/e2e-testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,19 @@ jobs:
- name: Check out source-code repository
uses: actions/checkout@v3

- name: Cache conda
uses: actions/cache@v3
id: cache
env:
# Increase this value to reset cache if etc/example-environment.yml has not changed
CACHE_NUMBER: 0
with:
path: ~/conda_pkgs_dir
key: ${{ runner.os }}-conda-${{ env.CACHE_NUMBER }}-${{ hashFiles('environment.yml') }}

- name: Setup conda
uses: conda-incubator/setup-miniconda@v3
if: steps.cache.outputs.cache-hit != 'true'
with:
auto-update-conda: true
environment-file: environment.yml
Expand All @@ -52,6 +63,7 @@ jobs:
channels: conda-forge,bioconda,defaults
activate-environment: seqerakit
use-mamba: true
use-only-tar-bz2: true

- name: Install Tower CLI v0.9.1
run: |
Expand Down

0 comments on commit fe84833

Please sign in to comment.