12
12
env :
13
13
NXF_ANSI_LOG : false
14
14
NFT_VER : " 0.9.0"
15
+ NXF_SINGULARITY_CACHEDIR : ${{ github.workspace }}/.singularity
16
+ NXF_SINGULARITY_LIBRARYDIR : ${{ github.workspace }}/.singularity
15
17
16
18
concurrency :
17
19
group : " ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}"
@@ -20,6 +22,8 @@ concurrency:
20
22
jobs :
21
23
test_profile_standard :
22
24
name : nf-test with standard profiles
25
+ # Only run on push if this is the nf-core dev branch (merged PRs)
26
+ if : " ${{ github.event_name != 'push' || (github.event_name == 'push' && github.repository == 'nf-core/metapep') }}"
23
27
runs-on : ubuntu-latest
24
28
strategy :
25
29
fail-fast : false
28
32
- " 24.04.2"
29
33
- " latest-everything"
30
34
profile :
35
+ - " conda"
36
+ - " docker"
37
+ - " singularity"
38
+ test_name :
31
39
- " test"
32
40
- " test_model_information"
33
41
- " test_mouse_all_pep_lengths"
37
45
- " test_mhcflurry"
38
46
- " test_mhcnuggets_1"
39
47
- " test_mhcnuggets_2"
48
+ isMaster :
49
+ - ${{ github.base_ref == 'master' }}
50
+ # Exclude conda and singularity on dev
51
+ exclude :
52
+ - isMaster : false
53
+ profile : " conda"
54
+ - isMaster : false
55
+ profile : " singularity"
40
56
41
57
steps :
42
58
- name : Check out pipeline code
82
98
83
99
- name : Run nf-test
84
100
run : |
85
- nf-test test --tag ${{ matrix.profile }} --profile ${{ matrix.profile }},docker --junitxml=test.xml --verbose
101
+ nf-test test --tag ${{ matrix.test_name }} --profile ${{ matrix.test_name }},${{ matrix.test_name }} --junitxml=test.xml --verbose
86
102
87
103
- name : Output log on failure
88
104
if : failure()
@@ -106,24 +122,60 @@ jobs:
106
122
fail-fast : false
107
123
matrix :
108
124
NXF_VER :
109
- - " 23 .04.0 "
125
+ - " 24 .04.2 "
110
126
- " latest-everything"
111
127
profile :
128
+ - " conda"
129
+ - " docker"
130
+ - " singularity"
131
+ test_name :
112
132
- " test_all"
113
133
- " test_mouse"
114
134
- " test_taxa_only"
115
135
- " test_taxa_specific_assembly"
116
-
136
+ isMaster :
137
+ - ${{ github.base_ref == 'master' }}
138
+ # Exclude conda and singularity on dev
139
+ exclude :
140
+ - isMaster : false
141
+ profile : " conda"
142
+ - isMaster : false
143
+ profile : " singularity"
117
144
steps :
118
145
- name : Check out pipeline code
119
- uses : actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
146
+ uses : actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4
120
147
121
- - name : Install Nextflow
122
- uses : nf-core/setup-nextflow@v1
148
+ - name : Set up Nextflow
149
+ uses : nf-core/setup-nextflow@v2
123
150
with :
124
151
version : " ${{ matrix.NXF_VER }}"
125
152
126
- - name : Disk space cleanup
153
+ - name : Set up Apptainer
154
+ if : matrix.profile == 'singularity'
155
+ uses : eWaterCycle/setup-apptainer@main
156
+
157
+ - name : Set up Singularity
158
+ if : matrix.profile == 'singularity'
159
+ run : |
160
+ mkdir -p $NXF_SINGULARITY_CACHEDIR
161
+ mkdir -p $NXF_SINGULARITY_LIBRARYDIR
162
+
163
+ - name : Set up Miniconda
164
+ if : matrix.profile == 'conda'
165
+ uses : conda-incubator/setup-miniconda@a4260408e20b96e80095f42ff7f1a15b27dd94ca # v3
166
+ with :
167
+ miniconda-version : " latest"
168
+ auto-update-conda : true
169
+ conda-solver : libmamba
170
+ channels : conda-forge,bioconda
171
+
172
+ - name : Set up Conda
173
+ if : matrix.profile == 'conda'
174
+ run : |
175
+ echo $(realpath $CONDA)/condabin >> $GITHUB_PATH
176
+ echo $(realpath python) >> $GITHUB_PATH
177
+
178
+ - name : Clean up Disk space
127
179
uses : jlumbroso/free-disk-space@54081f138730dfa15788a46383842cd2f914a1be # v1.3.1
128
180
129
181
- name : Install nf-test
@@ -138,7 +190,7 @@ jobs:
138
190
run : |
139
191
nextflow secrets set NCBI_EMAIL ${{ secrets.NCBI_EMAIL }}
140
192
nextflow secrets set NCBI_KEY ${{ secrets.NCBI_KEY }}
141
- nf-test test --tag ${{ matrix.profile }} --profile ${{ matrix.profile }},docker --junitxml=test.xml --verbose
193
+ nf-test test --tag ${{ matrix.test_name }} --profile ${{ matrix.test_name }},${{ matrix.test_name }} --junitxml=test.xml --verbose
142
194
143
195
- name : Output log on failure
144
196
if : failure()
0 commit comments