Skip to content
Snippets Groups Projects
Commit 41fda1a9 authored by Ruben Vorderman's avatar Ruben Vorderman
Browse files

Use cache

parent fd1a6426
No related branches found
No related tags found
No related merge requests found
......@@ -19,15 +19,46 @@ jobs:
- uses: actions/checkout@v2.3.4
with:
submodules: recursive
- name: Set cache date
run: echo "DATE=$(date +'%Y%m%d')" >> $GITHUB_ENV
- name: Cache conda packages
uses: actions/cache@v2.1.7
env:
# Increase this value to manually invalidate the cache
CACHE_NUMBER: 0
with:
path: ~/conda_pkgs_dir
key:
${{runner.os}}-conda-${{ env.CACHE_NUMBER }}-${env.date}-${{ hashFiles('.github/lint-environment.yml') }}
- name: Cache conda environment
uses: actions/cache@v2.1.7
env:
# Increase this value to manually invalidate the cache
CACHE_NUMBER: 0
with:
path: /usr/share/miniconda/envs/biowdl-lint
key:
${{runner.os}}-biowdl-lint-${{ env.CACHE_NUMBER }}-${{ hashFiles('.github/lint-environment.yml') }}
id: env_cache
- name: install miniconda
uses: conda-incubator/setup-miniconda@v2.0.1
uses: conda-incubator/setup-miniconda@v2.1.1
with:
miniforge-variant: Mambaforge
miniforge-version: latest
use-mamba: true
channels: conda-forge,bioconda,defaults
channel-priority: strict
installer-url: https://github.com/conda-forge/miniforge/releases/download/4.11.0-0/Mambaforge-4.11.0-0-Linux-x86_64.sh
# Conda-incubator uses 'test' environment by default.
- name: install requirements
auto-activate-base: false
activate-environment: biowdl-lint
- name: Update test environment
run: mamba install -n test cromwell miniwdl wdl-aid
if: steps.env_cache.outputs.cache-hit != 'true'
- name: run womtool validate
run: |
bash -c '
......
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