Skip to content

Commit

Permalink
move eager env file to github workspace
Browse files Browse the repository at this point in the history
  • Loading branch information
ktmeaton committed Jul 22, 2020
1 parent 3b3e77f commit 23b5bbb
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/cache_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ jobs:
nextflow pull nf-core/eager
nextflow pull nf-core/eager -r ${EAGER_NF_REV}
nextflow run nf-core/eager -r ${EAGER_NF_REV} --help
# Move env file into github workspace for hashing
cp ~/.nextflow/assets/nf-core/eager/environment.yml config/eager-environment.yaml
# Setup conda
- name: setup conda
uses: goanpeca/setup-miniconda@v1
Expand All @@ -49,14 +51,14 @@ jobs:
# Cache conda env, exclude test
path: |
/home/runner/miniconda/envs/nf-core-eager-2.2.0dev
key: eager-env-cache-${{ runner.os }}-${{ hashFiles('/home/runner/.nextflow/assets/nf-core/eager/environment.yml') }}
key: eager-env-cache-${{ runner.os }}-${{ hashFiles('config/eager-environment.yaml') }}
# Check env pre
- name: check env pre
shell: bash -l {0}
run: |
conda env list
ls -l /home/runner/miniconda/envs/
ls -l /home/runner/.nextflow/assets/nf-core/eager/environment.yml
ls -l config/
# Create env
- name: create conda env
if: steps.eager-env-cache.outputs.cache-hit != 'true'
Expand Down

0 comments on commit 23b5bbb

Please sign in to comment.