|
7 | 7 | pull_request: |
8 | 8 | release: |
9 | 9 | types: [published] |
| 10 | + workflow_dispatch: |
10 | 11 |
|
11 | 12 | env: |
12 | 13 | NXF_ANSI_LOG: false |
| 14 | + NXF_SINGULARITY_CACHEDIR: ${{ github.workspace }}/.singularity |
| 15 | + NXF_SINGULARITY_LIBRARYDIR: ${{ github.workspace }}/.singularity |
13 | 16 |
|
14 | 17 | concurrency: |
15 | 18 | group: "${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}" |
16 | 19 | cancel-in-progress: true |
17 | 20 |
|
18 | 21 | jobs: |
19 | 22 | test: |
20 | | - name: Run full pipeline with test data |
| 23 | + name: "Run pipeline with test data (${{ matrix.NXF_VER }} | ${{ matrix.test_name }} | ${{ matrix.profile }})" |
21 | 24 | # Only run on push if this is the nf-core dev branch (merged PRs) |
22 | 25 | if: "${{ github.event_name != 'push' || (github.event_name == 'push' && github.repository == 'nf-core/rnasplice') }}" |
23 | 26 | runs-on: ubuntu-latest |
24 | 27 | strategy: |
25 | 28 | matrix: |
26 | 29 | NXF_VER: |
27 | | - - "23.04.0" |
| 30 | + - "24.04.2" |
28 | 31 | - "latest-everything" |
| 32 | + profile: |
| 33 | + - "conda" |
| 34 | + - "docker" |
| 35 | + - "singularity" |
| 36 | + test_name: |
| 37 | + - "test" |
| 38 | + # - "test_dexseq" |
| 39 | + # - "test_edger" |
| 40 | + # - "test_rmats" |
| 41 | + # - "test_suppa" |
| 42 | + # - "test_fastq" |
| 43 | + # - "test_genome_bam" |
| 44 | + # - "test_transcriptome_bam" |
| 45 | + # - "test_salmon_results" |
| 46 | + # - "test_isoformswitchanalyzer" |
| 47 | + isMaster: |
| 48 | + - ${{ github.base_ref == 'master' }} |
| 49 | + # Exclude conda and singularity on dev |
| 50 | + exclude: |
| 51 | + - isMaster: false |
| 52 | + profile: "conda" |
| 53 | + - isMaster: false |
| 54 | + profile: "singularity" |
29 | 55 | steps: |
30 | 56 | - name: Check out pipeline code |
31 | | - uses: actions/checkout@v4 |
| 57 | + uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4 |
32 | 58 |
|
33 | | - - name: Install Nextflow |
34 | | - uses: nf-core/setup-nextflow@v1 |
| 59 | + - name: Set up Nextflow |
| 60 | + uses: nf-core/setup-nextflow@v2 |
35 | 61 | with: |
36 | 62 | version: "${{ matrix.NXF_VER }}" |
37 | 63 |
|
38 | | - - name: Run full pipeline with test data |
39 | | - run: | |
40 | | - nextflow run ${GITHUB_WORKSPACE} -profile test,docker --outdir ./results |
41 | | -
|
42 | | - test_dexseq: |
43 | | - name: Run DEXSeq pipeline with test data |
44 | | - # Only run on push if this is the nf-core dev branch (merged PRs) |
45 | | - if: "${{ github.event_name != 'push' || (github.event_name == 'push' && github.repository == 'nf-core/rnasplice') }}" |
46 | | - runs-on: ubuntu-latest |
47 | | - strategy: |
48 | | - matrix: |
49 | | - NXF_VER: |
50 | | - - "23.04.0" |
51 | | - - "latest-everything" |
52 | | - steps: |
53 | | - - name: Check out pipeline code |
54 | | - uses: actions/checkout@v3 |
55 | | - |
56 | | - - name: Install Nextflow |
57 | | - uses: nf-core/setup-nextflow@v1 |
58 | | - with: |
59 | | - version: "${{ matrix.NXF_VER }}" |
60 | | - |
61 | | - - name: Run DEXSeq pipeline with test data |
62 | | - run: | |
63 | | - nextflow run ${GITHUB_WORKSPACE} -profile test_dexseq,docker --outdir ./results |
64 | | -
|
65 | | - test_edger: |
66 | | - name: Run edgeR pipeline with test data |
67 | | - # Only run on push if this is the nf-core dev branch (merged PRs) |
68 | | - if: "${{ github.event_name != 'push' || (github.event_name == 'push' && github.repository == 'nf-core/rnasplice') }}" |
69 | | - runs-on: ubuntu-latest |
70 | | - strategy: |
71 | | - matrix: |
72 | | - NXF_VER: |
73 | | - - "23.04.0" |
74 | | - - "latest-everything" |
75 | | - steps: |
76 | | - - name: Check out pipeline code |
77 | | - uses: actions/checkout@v3 |
78 | | - |
79 | | - - name: Install Nextflow |
80 | | - uses: nf-core/setup-nextflow@v1 |
81 | | - with: |
82 | | - version: "${{ matrix.NXF_VER }}" |
83 | | - |
84 | | - - name: Run edgeR pipeline with test data |
85 | | - run: | |
86 | | - nextflow run ${GITHUB_WORKSPACE} -profile test_edger,docker --outdir ./results |
87 | | -
|
88 | | - test_rmats: |
89 | | - name: Run rMATS pipeline with test data |
90 | | - # Only run on push if this is the nf-core dev branch (merged PRs) |
91 | | - if: "${{ github.event_name != 'push' || (github.event_name == 'push' && github.repository == 'nf-core/rnasplice') }}" |
92 | | - runs-on: ubuntu-latest |
93 | | - strategy: |
94 | | - matrix: |
95 | | - NXF_VER: |
96 | | - - "23.04.0" |
97 | | - - "latest-everything" |
98 | | - steps: |
99 | | - - name: Check out pipeline code |
100 | | - uses: actions/checkout@v3 |
101 | | - |
102 | | - - name: Install Nextflow |
103 | | - uses: nf-core/setup-nextflow@v1 |
104 | | - with: |
105 | | - version: "${{ matrix.NXF_VER }}" |
106 | | - |
107 | | - - name: Run rMATS pipeline with test data |
108 | | - run: | |
109 | | - nextflow run ${GITHUB_WORKSPACE} -profile test_rmats,docker --outdir ./results |
110 | | -
|
111 | | - test_suppa: |
112 | | - name: Run SUPPA pipeline with test data |
113 | | - # Only run on push if this is the nf-core dev branch (merged PRs) |
114 | | - if: "${{ github.event_name != 'push' || (github.event_name == 'push' && github.repository == 'nf-core/rnasplice') }}" |
115 | | - runs-on: ubuntu-latest |
116 | | - strategy: |
117 | | - matrix: |
118 | | - NXF_VER: |
119 | | - - "23.04.0" |
120 | | - - "latest-everything" |
121 | | - steps: |
122 | | - - name: Check out pipeline code |
123 | | - uses: actions/checkout@v3 |
| 64 | + - name: Set up Apptainer |
| 65 | + if: matrix.profile == 'singularity' |
| 66 | + uses: eWaterCycle/setup-apptainer@main |
124 | 67 |
|
125 | | - - name: Install Nextflow |
126 | | - uses: nf-core/setup-nextflow@v1 |
127 | | - with: |
128 | | - version: "${{ matrix.NXF_VER }}" |
129 | | - |
130 | | - - name: Run SUPPA pipeline with test data |
131 | | - run: | |
132 | | - nextflow run ${GITHUB_WORKSPACE} -profile test_suppa,docker --outdir ./results |
133 | | -
|
134 | | - test_fastq: |
135 | | - name: Run full pipeline with FASTQ data |
136 | | - # Only run on push if this is the nf-core dev branch (merged PRs) |
137 | | - if: "${{ github.event_name != 'push' || (github.event_name == 'push' && github.repository == 'nf-core/rnasplice') }}" |
138 | | - runs-on: ubuntu-latest |
139 | | - strategy: |
140 | | - matrix: |
141 | | - NXF_VER: |
142 | | - - "23.04.0" |
143 | | - - "latest-everything" |
144 | | - steps: |
145 | | - - name: Check out pipeline code |
146 | | - uses: actions/checkout@v3 |
147 | | - |
148 | | - - name: Install Nextflow |
149 | | - uses: nf-core/setup-nextflow@v1 |
150 | | - with: |
151 | | - version: "${{ matrix.NXF_VER }}" |
152 | | - |
153 | | - - name: Run full pipeline with FASTQ data |
154 | | - run: | |
155 | | - nextflow run ${GITHUB_WORKSPACE} -profile test_fastq,docker --outdir ./results |
156 | | -
|
157 | | - test_genome_bam: |
158 | | - name: Run full pipeline with genome BAM data |
159 | | - # Only run on push if this is the nf-core dev branch (merged PRs) |
160 | | - if: "${{ github.event_name != 'push' || (github.event_name == 'push' && github.repository == 'nf-core/rnasplice') }}" |
161 | | - runs-on: ubuntu-latest |
162 | | - strategy: |
163 | | - matrix: |
164 | | - NXF_VER: |
165 | | - - "23.04.0" |
166 | | - - "latest-everything" |
167 | | - steps: |
168 | | - - name: Check out pipeline code |
169 | | - uses: actions/checkout@v3 |
170 | | - |
171 | | - - name: Install Nextflow |
172 | | - uses: nf-core/setup-nextflow@v1 |
173 | | - with: |
174 | | - version: "${{ matrix.NXF_VER }}" |
175 | | - |
176 | | - - name: Run full pipeline with genome BAM data |
| 68 | + - name: Set up Singularity |
| 69 | + if: matrix.profile == 'singularity' |
177 | 70 | run: | |
178 | | - nextflow run ${GITHUB_WORKSPACE} -profile test_genome_bam,docker --outdir ./results |
179 | | -
|
180 | | - test_transcriptome_bam: |
181 | | - name: Run full pipeline with transcriptome BAM data |
182 | | - # Only run on push if this is the nf-core dev branch (merged PRs) |
183 | | - if: "${{ github.event_name != 'push' || (github.event_name == 'push' && github.repository == 'nf-core/rnasplice') }}" |
184 | | - runs-on: ubuntu-latest |
185 | | - strategy: |
186 | | - matrix: |
187 | | - NXF_VER: |
188 | | - - "23.04.0" |
189 | | - - "latest-everything" |
190 | | - steps: |
191 | | - - name: Check out pipeline code |
192 | | - uses: actions/checkout@v3 |
| 71 | + mkdir -p $NXF_SINGULARITY_CACHEDIR |
| 72 | + mkdir -p $NXF_SINGULARITY_LIBRARYDIR |
193 | 73 |
|
194 | | - - name: Install Nextflow |
195 | | - uses: nf-core/setup-nextflow@v1 |
| 74 | + - name: Set up Miniconda |
| 75 | + if: matrix.profile == 'conda' |
| 76 | + uses: conda-incubator/setup-miniconda@a4260408e20b96e80095f42ff7f1a15b27dd94ca # v3 |
196 | 77 | with: |
197 | | - version: "${{ matrix.NXF_VER }}" |
| 78 | + miniconda-version: "latest" |
| 79 | + auto-update-conda: true |
| 80 | + conda-solver: libmamba |
| 81 | + channels: conda-forge,bioconda |
198 | 82 |
|
199 | | - - name: Run full pipeline with transcriptome BAM data |
| 83 | + - name: Set up Conda |
| 84 | + if: matrix.profile == 'conda' |
200 | 85 | run: | |
201 | | - nextflow run ${GITHUB_WORKSPACE} -profile test_transcriptome_bam,docker --outdir ./results |
202 | | -
|
203 | | - test_salmon_results: |
204 | | - name: Run full pipeline with Salmon results data |
205 | | - # Only run on push if this is the nf-core dev branch (merged PRs) |
206 | | - if: "${{ github.event_name != 'push' || (github.event_name == 'push' && github.repository == 'nf-core/rnasplice') }}" |
207 | | - runs-on: ubuntu-latest |
208 | | - strategy: |
209 | | - matrix: |
210 | | - NXF_VER: |
211 | | - - "23.04.0" |
212 | | - - "latest-everything" |
213 | | - steps: |
214 | | - - name: Check out pipeline code |
215 | | - uses: actions/checkout@v3 |
| 86 | + echo $(realpath $CONDA)/condabin >> $GITHUB_PATH |
| 87 | + echo $(realpath python) >> $GITHUB_PATH |
216 | 88 |
|
217 | | - - name: Install Nextflow |
218 | | - uses: nf-core/setup-nextflow@v1 |
219 | | - with: |
220 | | - version: "${{ matrix.NXF_VER }}" |
| 89 | + - name: Clean up Disk space |
| 90 | + uses: jlumbroso/free-disk-space@54081f138730dfa15788a46383842cd2f914a1be # v1.3.1 |
221 | 91 |
|
222 | | - - name: Run full pipeline with Salmon results data |
| 92 | + - name: "Run pipeline with test data ${{ matrix.NXF_VER }} | ${{ matrix.test_name }} | ${{ matrix.profile }}" |
223 | 93 | run: | |
224 | | - nextflow run ${GITHUB_WORKSPACE} -profile test_salmon_results,docker --outdir ./results |
| 94 | + nextflow run ${GITHUB_WORKSPACE} -profile ${{ matrix.test_name }},${{ matrix.profile }} --outdir ./results |
0 commit comments