Skip to content
Snippets Groups Projects
Commit 7761e63f authored by van den Berg's avatar van den Berg
Browse files

Add conda cache

parent 1030a727
No related branches found
No related tags found
No related merge requests found
Pipeline #5298 failed
......@@ -18,16 +18,31 @@ jobs:
steps:
- uses: actions/checkout@v2
- uses: eWaterCycle/setup-singularity@v6
- name: Install singularity
uses: eWaterCycle/setup-singularity@v6
with:
singularity-version: 3.6.4
- uses: conda-incubator/setup-miniconda@v2.0.1
- name: Cache conda environment
uses: actions/cache@v2
env:
cache-name: cache-conda-environment
# Increase this value to reset the cache without changing
# environment.yml
cache-number: 0
with:
path: ~/conda_pkgs_dir
key: build-${{ env.cache-name }}-${{ env.cache-number }}-{{ hashFiles('environment.yml') }}
- name: Install miniconda
uses: conda-incubator/setup-miniconda@v2.0.1
# https://github.com/conda-incubator/setup-miniconda.
# https://github.com/marketplace/actions/setup-miniconda
with:
activate-environment: hutspot
environment-file: environment.yml
auto-activate-base: false
use-only-tar-bz2: true
- name: Run test in conda evironment
# Use --symlink to limit disk usage.
......@@ -54,7 +69,7 @@ jobs:
if: ${{ failure() }}
run: >-
bash -c '
for file in $(find /tmp/pytest_workflow_*/log/ -type f); do
for file in $(find /tmp/pytest_workflow_*/${{ matrix.test}}/log/ -type f); do
echo $file; cat $file
done
'
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment