Skip to content

Commit

Permalink
gha: Attempt (cached) mamba
Browse files Browse the repository at this point in the history
  • Loading branch information
joshmoore committed Nov 1, 2022
1 parent 5bda645 commit c710fbe
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion .github/workflows/impl.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,24 @@ jobs:
- name: Checkout
uses: actions/checkout@v3

- name: Cache conda
uses: actions/cache@v2
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( format('{0}/{1}/{2}', 'implementations/', inputs.implementation, '/environment.yml') ) }}

- name: Setup miniconda
uses: conda-incubator/setup-miniconda@v1
with:
auto-update-conda: true
channels: conda-forge,ome
channels: conda-forge,defaults
channel-priority: true
environment-file: implementations/${{ inputs.implementation }}/environment.yml
mamba-version: "*"
python-version: ${{ inputs.python-version }}
env:
ACTIONS_ALLOW_UNSECURE_COMMANDS: true
Expand Down

0 comments on commit c710fbe

Please sign in to comment.