-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #38 from SchlossLab/iss-35
Create demo of running the workflow on a larger github-actions runner
- Loading branch information
Showing
7 changed files
with
90 additions
and
14 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,47 @@ | ||
name: run-snakemake | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
configfile: | ||
description: "Path to the config file" | ||
required: true | ||
default: 'config/test.yaml' | ||
type: string | ||
|
||
jobs: | ||
run-snakemake: | ||
runs-on: ubuntu-latest-16-cores | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
persist-credentials: false | ||
fetch-depth: 0 | ||
- uses: conda-incubator/setup-miniconda@v2 | ||
with: | ||
python-version: 3.11 | ||
miniforge-variant: Mambaforge | ||
miniforge-version: latest | ||
activate-environment: smk | ||
environment-file: workflow/envs/smk.yml | ||
- name: Run the snakemake workflow | ||
uses: snakemake/[email protected] | ||
with: | ||
directory: . | ||
snakefile: workflow/Snakefile | ||
args: "--cores 16 --use-conda --conda-frontend mamba --conda-cleanup-pkgs cache --show-failed-logs --configfile ${{ inputs.configfile }}" | ||
- uses: actions/upload-artifact@v3 | ||
if: failure() | ||
with: | ||
name: log | ||
path: log/ | ||
- name: Get current date | ||
id: date | ||
run: echo "::set-output name=date::$(date +'%Y-%m-%d')" | ||
- name: Upload archive | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: workflow-results | ||
path: workflow_*.zip | ||
if-no-files-found: warn | ||
|
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 |
---|---|---|
|
@@ -14,3 +14,4 @@ __pycache__/ | |
figures/otu* | ||
results/otu* | ||
report_otu* | ||
*.zip |
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
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 |
---|---|---|
|
@@ -5,3 +5,4 @@ channels: | |
dependencies: | ||
- snakemake=7 | ||
- snakedeploy | ||
- zip |
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