Skip to content

Commit

Permalink
rename default env
Browse files Browse the repository at this point in the history
  • Loading branch information
ktmeaton committed Oct 10, 2020
1 parent 748af91 commit 7343171
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/install.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,12 +48,12 @@ jobs:
channels: conda-forge
#------------------------------------------------------------------------#
# Restore (cache) conda environments
- name: cache default env
id: cache-default
- name: cache main env
id: cache-main
uses: actions/cache@v2
with:
path: /home/runner/miniconda/envs/plague-phylogeography
key: snakemake-default-env-${{ hashFiles('workflow/envs/main/main.yaml') }}
key: snakemake-main-env-${{ hashFiles('workflow/envs/main/main.yaml') }}
# Cache workflow environments
- name: cache workflow envs
uses: actions/cache@v2
Expand All @@ -65,8 +65,8 @@ jobs:
run: |
conda info --envs
# Create environment (if not cached)
- name: create default environment
if: steps.cache-default.outputs.cache-hit != 'true'
- name: create main environment
if: steps.cache-main.outputs.cache-hit != 'true'
shell: bash -l {0}
run:
mamba env create -f workflow/envs/main/main.yaml;
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/pipeline.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -63,12 +63,12 @@ jobs:
channels: conda-forge
#------------------------------------------------------------------------#
# Restore (cache) conda environments
- name: cache default env
id: cache-default
- name: cache main env
id: cache-main
uses: actions/cache@v2
with:
path: /home/runner/miniconda/envs/plague-phylogeography
key: snakemake-default-env-${{ hashFiles('workflow/envs/main/main.yaml') }}
key: snakemake-main-env-${{ hashFiles('workflow/envs/main/main.yaml') }}
# Cache workflow environments
- name: cache workflow envs
uses: actions/cache@v2
Expand All @@ -80,8 +80,8 @@ jobs:
run: |
conda info --envs
# Create environment (if not cached)
- name: create default environment
if: steps.cache-default.outputs.cache-hit != 'true'
- name: create main environment
if: steps.cache-main.outputs.cache-hit != 'true'
shell: bash -l {0}
run:
mamba env create -f workflow/envs/main/main.yaml;
Expand Down

0 comments on commit 7343171

Please sign in to comment.