File tree Expand file tree Collapse file tree 1 file changed +11
-3
lines changed Expand file tree Collapse file tree 1 file changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -56,17 +56,25 @@ runs:
56
56
sudo apt-get update
57
57
sudo apt-get install -y apptainer
58
58
59
- - name : Prepare environment.yaml
59
+ - name : Prepare .snakemake. environment.yaml
60
60
shell : bash -el {0}
61
- run : sed 's/{{ snakemake_version }}/${{ inputs.snakemake-version }}/g' environment.yaml.template > environment.yaml
61
+ run : |8
62
+ cat <<EOF > .snakemake.environment.yaml
63
+ channels:
64
+ - conda-forge
65
+ - bioconda
66
+ - nodefaults
67
+ dependencies:
68
+ - snakemake ==${{ inputs.snakemake-version }}
69
+ EOF
62
70
63
71
- name : Setup conda
64
72
uses : conda-incubator/setup-miniconda@v3
65
73
with :
66
74
channels : conda-forge,bioconda
67
75
channel-priority : strict
68
76
miniforge-version : latest
69
- environment-file : environment.yaml
77
+ environment-file : .snakemake. environment.yaml
70
78
activate-environment : snakemake
71
79
72
80
- name : Display snakemake version
You can’t perform that action at this time.
0 commit comments