You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+16Lines changed: 16 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -28,6 +28,14 @@ Whether to run Snakemake or to generate a container image specification (in the
28
28
29
29
Whether used disk space shall be printed if Snakemake fails. Can be either `true` or `false` (default: `false`).
30
30
31
+
### `snakemake-version`
32
+
33
+
Snakemake version to install from conda. Default `*` (latest available version from the configured channels).
34
+
35
+
### `snakemake-branch`
36
+
37
+
Optional Snakemake git branch to install from `https://github.com/snakemake/snakemake`. If set, this takes precedence over `snakemake-version` and Snakemake is installed from source via pip.
38
+
31
39
## Example usage
32
40
33
41
```yaml
@@ -47,6 +55,14 @@ Whether used disk space shall be printed if Snakemake fails. Can be either `true
47
55
stagein: ""# additional preliminary commands to run (can be multiline)
Copy file name to clipboardExpand all lines: action.yml
+27-4Lines changed: 27 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -29,15 +29,22 @@ inputs:
29
29
show-disk-usage-on-error:
30
30
description: Whether to return the used disk space on failing.
31
31
required: false
32
-
default: false
32
+
default: "false"
33
33
snakemake-version:
34
-
description: Snakemake version to use. If not specified, uses latest version. Pin a specific version (e.g., '8.25.5') for reproducibility.
34
+
description: |
35
+
Snakemake version to use. If not specified, uses latest version. Pin a specific version (e.g., '8.25.5') for reproducibility.
35
36
required: false
36
37
default: "*"
38
+
snakemake-branch:
39
+
description: |
40
+
Optional Snakemake git branch to install from https://github.com/snakemake/snakemake.
41
+
If set, this takes precedence over snakemake-version and Snakemake is installed via pip.
42
+
required: false
43
+
default: ""
37
44
install-apptainer:
38
45
description: Install Apptainer (true/false)
39
46
required: false
40
-
default: false
47
+
default: "false"
41
48
42
49
runs:
43
50
using: "composite"
@@ -70,18 +77,34 @@ runs:
70
77
- bioconda
71
78
- nodefaults
72
79
dependencies:
80
+
EOF
81
+
82
+
if [[ -n "${{ inputs.snakemake-branch }}" ]]; then
83
+
cat <<EOF >> .snakemake.environment.yaml
84
+
- python
85
+
- pip
86
+
EOF
87
+
else
88
+
cat <<EOF >> .snakemake.environment.yaml
73
89
- snakemake ==${{ inputs.snakemake-version }}
74
90
EOF
91
+
fi
75
92
76
93
- name: Setup conda
77
94
uses: conda-incubator/setup-miniconda@v3
78
95
with:
79
96
channels: conda-forge,bioconda
80
97
channel-priority: strict
81
-
miniforge-version: 25.9.1-0 # TODO: set back to "latest" once this issue in the conda installer (template) is fixed and released: https://github.com/conda/constructor/pull/1135
0 commit comments