3535 with :
3636 version : " ${{ matrix.NXF_VER }}"
3737
38+ - name : Cache test data
39+ id : cache-testdata
40+ uses : actions/cache@v3
41+ with :
42+ path : test-datasets/
43+ key : rnaseq3_10-test-data
44+
45+ - name : Check out test data
46+ if : steps.cache-testdata.outputs.cache-hit != 'true'
47+ uses : actions/checkout@v3
48+ with :
49+ repository : nf-core/test-datasets
50+ ref : rnaseq3
51+ path : test-datasets/
52+
53+ - name : Replace remote paths in samplesheets
54+ run : |
55+ for f in ${{ github.workspace }}/test-datasets/samplesheet/v3.10/*.csv; do
56+ sed -i "s=https://raw.githubusercontent.com/nf-core/test-datasets/rnaseq/=${{ github.workspace }}/test-datasets/=g" $f
57+ echo "========== $f ============"
58+ cat $f
59+ echo "========================================"
60+ done;
61+
3862 - name : Run pipeline with test data
3963 run : |
40- nextflow run ${GITHUB_WORKSPACE} -profile test,docker --outdir ./results
64+ nextflow run ${GITHUB_WORKSPACE} -profile test,docker --outdir ./results --test_data_base ${{ github.workspace }}/test-datasets/
4165
4266 star_salmon :
4367 name : Test STAR Salmon with workflow parameters
@@ -58,18 +82,43 @@ jobs:
5882 - " --bam_csi_index"
5983 - " --save_align_intermeds --save_reference"
6084 - " --featurecounts_group_type false"
85+ - " --trimmer fastp"
6186 steps :
6287 - name : Check out pipeline code
6388 uses : actions/checkout@v2
6489
90+ - name : Cache test data
91+ id : cache-testdata
92+ uses : actions/cache@v3
93+ with :
94+ path : test-datasets/
95+ key : rnaseq3_10-test-data
96+
97+ - name : Check out test data
98+ if : steps.cache-testdata.outputs.cache-hit != 'true'
99+ uses : actions/checkout@v3
100+ with :
101+ repository : nf-core/test-datasets
102+ ref : rnaseq3
103+ path : test-datasets/
104+
105+ - name : Replace remote paths in samplesheets
106+ run : |
107+ for f in ${{ github.workspace }}/test-datasets/samplesheet/v3.10/*.csv; do
108+ sed -i "s=https://raw.githubusercontent.com/nf-core/test-datasets/rnaseq/=${{ github.workspace }}/test-datasets/=g" $f
109+ echo "========== $f ============"
110+ cat $f
111+ echo "========================================"
112+ done;
113+
65114 - name : Install Nextflow
66115 run : |
67116 wget -qO- get.nextflow.io | bash
68117 sudo mv nextflow /usr/local/bin/
69118
70119 - name : Run pipeline with STAR and various parameters
71120 run : |
72- nextflow run ${GITHUB_WORKSPACE} -profile test,docker --aligner star_salmon ${{ matrix.parameters }} --outdir ./results
121+ nextflow run ${GITHUB_WORKSPACE} -profile test,docker --aligner star_salmon ${{ matrix.parameters }} --outdir ./results --test_data_base ${{ github.workspace }}/test-datasets/
73122
74123 star_rsem :
75124 name : Test STAR RSEM with workflow parameters
@@ -84,14 +133,38 @@ jobs:
84133 - name : Check out pipeline code
85134 uses : actions/checkout@v2
86135
136+ - name : Cache test data
137+ id : cache-testdata
138+ uses : actions/cache@v3
139+ with :
140+ path : test-datasets/
141+ key : rnaseq3_10-test-data
142+
143+ - name : Check out test data
144+ if : steps.cache-testdata.outputs.cache-hit != 'true'
145+ uses : actions/checkout@v3
146+ with :
147+ repository : nf-core/test-datasets
148+ ref : rnaseq3
149+ path : test-datasets/
150+
151+ - name : Replace remote paths in samplesheets
152+ run : |
153+ for f in ${{ github.workspace }}/test-datasets/samplesheet/v3.10/*.csv; do
154+ sed -i "s=https://raw.githubusercontent.com/nf-core/test-datasets/rnaseq/=${{ github.workspace }}/test-datasets/=g" $f
155+ echo "========== $f ============"
156+ cat $f
157+ echo "========================================"
158+ done;
159+
87160 - name : Install Nextflow
88161 run : |
89162 wget -qO- get.nextflow.io | bash
90163 sudo mv nextflow /usr/local/bin/
91164
92165 - name : Run pipeline with RSEM STAR and various parameters
93166 run : |
94- nextflow run ${GITHUB_WORKSPACE} -profile test,docker --aligner star_rsem ${{ matrix.parameters }} --outdir ./results
167+ nextflow run ${GITHUB_WORKSPACE} -profile test,docker --aligner star_rsem ${{ matrix.parameters }} --outdir ./results --test_data_base ${{ github.workspace }}/test-datasets/
95168
96169 hisat2 :
97170 name : Test HISAT2 with workflow parameters
@@ -106,14 +179,38 @@ jobs:
106179 - name : Check out pipeline code
107180 uses : actions/checkout@v2
108181
182+ - name : Cache test data
183+ id : cache-testdata
184+ uses : actions/cache@v3
185+ with :
186+ path : test-datasets/
187+ key : rnaseq3_10-test-data
188+
189+ - name : Check out test data
190+ if : steps.cache-testdata.outputs.cache-hit != 'true'
191+ uses : actions/checkout@v3
192+ with :
193+ repository : nf-core/test-datasets
194+ ref : rnaseq3
195+ path : test-datasets/
196+
197+ - name : Replace remote paths in samplesheets
198+ run : |
199+ for f in ${{ github.workspace }}/test-datasets/samplesheet/v3.10/*.csv; do
200+ sed -i "s=https://raw.githubusercontent.com/nf-core/test-datasets/rnaseq/=${{ github.workspace }}/test-datasets/=g" $f
201+ echo "========== $f ============"
202+ cat $f
203+ echo "========================================"
204+ done;
205+
109206 - name : Install Nextflow
110207 run : |
111208 wget -qO- get.nextflow.io | bash
112209 sudo mv nextflow /usr/local/bin/
113210
114211 - name : Run pipeline with HISAT2 and various parameters
115212 run : |
116- nextflow run ${GITHUB_WORKSPACE} -profile test,docker --aligner hisat2 ${{ matrix.parameters }} --outdir ./results
213+ nextflow run ${GITHUB_WORKSPACE} -profile test,docker --aligner hisat2 ${{ matrix.parameters }} --outdir ./results --test_data_base ${{ github.workspace }}/test-datasets/
117214
118215 salmon :
119216 name : Test Salmon with workflow parameters
@@ -128,11 +225,35 @@ jobs:
128225 - name : Check out pipeline code
129226 uses : actions/checkout@v2
130227
228+ - name : Cache test data
229+ id : cache-testdata
230+ uses : actions/cache@v3
231+ with :
232+ path : test-datasets/
233+ key : rnaseq3_10-test-data
234+
235+ - name : Check out test data
236+ if : steps.cache-testdata.outputs.cache-hit != 'true'
237+ uses : actions/checkout@v3
238+ with :
239+ repository : nf-core/test-datasets
240+ ref : rnaseq3
241+ path : test-datasets/
242+
243+ - name : Replace remote paths in samplesheets
244+ run : |
245+ for f in ${{ github.workspace }}/test-datasets/samplesheet/v3.10/*.csv; do
246+ sed -i "s=https://raw.githubusercontent.com/nf-core/test-datasets/rnaseq/=${{ github.workspace }}/test-datasets/=g" $f
247+ echo "========== $f ============"
248+ cat $f
249+ echo "========================================"
250+ done;
251+
131252 - name : Install Nextflow
132253 run : |
133254 wget -qO- get.nextflow.io | bash
134255 sudo mv nextflow /usr/local/bin/
135256
136257 - name : Run pipeline with Salmon and various parameters
137258 run : |
138- nextflow run ${GITHUB_WORKSPACE} -profile test,docker --pseudo_aligner salmon ${{ matrix.parameters }} --outdir ./results
259+ nextflow run ${GITHUB_WORKSPACE} -profile test,docker --pseudo_aligner salmon ${{ matrix.parameters }} --outdir ./results --test_data_base ${{ github.workspace }}/test-datasets/
0 commit comments