-
Notifications
You must be signed in to change notification settings - Fork 3
42 lines (39 loc) · 1.16 KB
/
run-snakemake.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
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
- name: Print config file
run: |
echo "Using config file: ${{ inputs.configfile }}"
cat ${{ inputs.configfile }}
- name: Run the snakemake workflow
uses: snakemake/snakemake-github-action@v1.24.0
with:
directory: .
snakefile: workflow/Snakefile
args: "archive --cores 16 --use-conda --conda-frontend mamba --show-failed-logs --configfile ${{ inputs.configfile }}"
- name: Upload logs on failure
uses: actions/upload-artifact@v3
if: failure()
with:
name: log
path: log/
- name: Upload archive on success
uses: actions/upload-artifact@v3
with:
name: workflow-results
path: workflow_*.zip
if-no-files-found: warn