-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test new pipeline workflow after updating docs
- Loading branch information
Showing
5 changed files
with
110 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
#------------------------------------------------------------------------------# | ||
name: Pipeline | ||
#------------------------------------------------------------------------------# | ||
# Global workflow environment variables | ||
env: | ||
CONDA_ENVS_PATH: "/home/runner/miniconda/envs:/usr/share/miniconda/envs" | ||
CONDA_PKGS_DIRS: "/home/runner/miniconda/pkgs" | ||
#------------------------------------------------------------------------------# | ||
# Workflow conditions | ||
on: | ||
push: | ||
branches: | ||
- '*' | ||
paths: | ||
- '.github/workflows/pipeline.yaml' | ||
- 'workflow/Snakefile' | ||
- 'workflow/rules/*.smk' | ||
- 'workflow/envs/*.yaml' | ||
pull_request: | ||
branches: | ||
- '*' | ||
release: | ||
types: [published] | ||
#------------------------------------------------------------------------------# | ||
jobs: | ||
#----------------------------------------------------------------------------# | ||
# Install dependencies | ||
install : | ||
runs-on: ubuntu-latest | ||
steps: | ||
#------------------------------------------------------------------------# | ||
# Checkout Repository | ||
- name: checkout repo | ||
uses: actions/checkout@v2 | ||
#------------------------------------------------------------------------# | ||
# Setup conda with mamba | ||
- name: setup conda | ||
uses: goanpeca/setup-miniconda@v1 | ||
with: | ||
auto-update-conda: true | ||
mamba-version: "*" | ||
channels: conda-forge | ||
#------------------------------------------------------------------------# | ||
# Restore (cache) conda environments | ||
- name: cache default env | ||
id: cache-default | ||
uses: actions/cache@v2 | ||
with: | ||
path: /home/runner/miniconda/envs/default | ||
key: snakemake-default-${{ runner.os }}-${{ hashFiles('workflow/envs/default.yaml') }} | ||
# Check conda environments | ||
- name: check cache | ||
run: | | ||
conda info --envs | ||
# Create environment (if not cached) | ||
- name: create default environment | ||
if: steps.cache-default.outputs.cache-hit != 'true' | ||
shell: bash -l {0} | ||
run: | ||
mamba env create -f workflow/envs/default.yaml | ||
#------------------------------------------------------------------------# | ||
# Test pipeline | ||
- name: test pipeline | ||
shell: bash -l {0} | ||
run: | ||
conda activate default; | ||
snakemake all --use-conda --profile profiles/gh-actions; | ||
conda deactivate; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
results/* | ||
test/* | ||
sra/* | ||
workflow/logs/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
channels: | ||
- bioconda | ||
- defaults | ||
dependencies: | ||
- iqtree=2.0.3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters