Skip to content

Commit

Permalink
add the conda env paths
Browse files Browse the repository at this point in the history
  • Loading branch information
ktmeaton committed Jul 22, 2020
1 parent 17c2042 commit 3ab19df
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/pipeline_assembly.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ name: Pipeline Assembly

# Global workflow environment variables
env:
PHYLO_NF_REV: "master"
CONDA_ENVS_PATH: "/home/runner/miniconda/envs:/usr/share/miniconda/envs"
CONDA_PKGS_DIRS: "/home/runner/miniconda/pkgs"
PHYLO_CONDA_ENV: "plague-phylogeography-0.1.4dev"

on:
Expand All @@ -16,7 +17,7 @@ on:
- '.github/workflows/pipeline_assembly.yaml'
- 'main.nf'
- 'nextflow.config'
- 'environment.yaml'
#- 'environment.yaml'

# Triggered on PR for all branches, pipeline
pull_request:
Expand Down Expand Up @@ -45,7 +46,6 @@ jobs:
shell: bash -l {0}
run: |
nextflow pull ktmeaton/plague-phylogeography
nextflow pull ktmeaton/plague-phylogeography -r ${PHYLO_NF_REV}
nextflow run ktmeaton/plague-phylogeography --version
# Move env files into github workspace for hashing
cp ~/.nextflow/assets/ktmeaton/plague-phylogeography/environment.yaml \
Expand All @@ -71,8 +71,9 @@ jobs:
#------------------------------------------------------------------------#
# Test Pipeline #
#------------------------------------------------------------------------#
# Run Assembly Pipeline
# Run Assembly Pipeline (only if cache restored)
- name: assembly pipeline
if: steps.plague-phylogeography-env-cache.outputs.cache-hit == 'true'
shell: bash -l {0}
run: |
conda activate ${PHYLO_CONDA_ENV}
Expand Down

0 comments on commit 3ab19df

Please sign in to comment.