Skip to content

Commit 517a377

Browse files
committed
Update ci
1 parent c2f4f55 commit 517a377

File tree

1 file changed

+54
-9
lines changed

1 file changed

+54
-9
lines changed

.github/workflows/ci.yml

Lines changed: 54 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,8 @@ jobs:
3333
- "conda"
3434
- "docker"
3535
- "singularity"
36-
parameters:
37-
- ""
38-
- "--skip_trimming"
39-
- "--skip_consensus_peaks"
40-
- "--aligner bowtie2"
41-
- "--aligner chromap"
42-
- "--aligner star"
36+
test_name:
37+
- "test"
4338
isMaster:
4439
- ${{ github.base_ref == 'master' }}
4540
# Exclude conda and singularity on dev
@@ -87,8 +82,58 @@ jobs:
8782
- name: Clean up Disk space
8883
uses: jlumbroso/free-disk-space@54081f138730dfa15788a46383842cd2f914a1be # v1.3.1
8984

90-
- name: "Run pipeline with test data ${{ matrix.NXF_VER }} | ${{ matrix.parameters }} | ${{ matrix.profile }}"
85+
- name: "Run pipeline with test data ${{ matrix.NXF_VER }} | ${{ matrix.test_name }} | ${{ matrix.profile }}"
9186
continue-on-error: ${{ matrix.NXF_VER == 'latest-everything' }}
9287
run: |
93-
nextflow run ${GITHUB_WORKSPACE} -profile test,${{ matrix.profile }} --outdir ./results ${{ matrix.parameters }}
88+
nextflow run ${GITHUB_WORKSPACE} -profile test,docker --outdir ./results
89+
90+
- name: Run pipeline with test data (singularity)
91+
run: |
92+
nextflow run ${GITHUB_WORKSPACE} -profile test,singularity --outdir ./results
93+
if: "${{ github.base_ref == 'master' }}"
94+
95+
- name: Run pipeline with test data (conda)
96+
run: |
97+
nextflow run ${GITHUB_WORKSPACE} -profile test,conda --outdir ./results
98+
if: "${{ github.base_ref == 'master' }}"
99+
100+
parameters:
101+
name: Test workflow parameters
102+
if: "${{ github.event_name != 'push' || (github.event_name == 'push' && github.repository == 'nf-core/chipseq') }}"
103+
runs-on: ubuntu-latest
104+
strategy:
105+
matrix:
106+
NXF_VER:
107+
- "24.04.2"
108+
- "latest-everything"
109+
parameters:
110+
- "--skip_trimming"
111+
- "--skip_consensus_peaks"
112+
- "--aligner bowtie2"
113+
- "--aligner chromap"
114+
- "--aligner star"
115+
steps:
116+
- name: Check out pipeline code
117+
uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4
118+
119+
- name: Install Nextflow
120+
uses: nf-core/setup-nextflow@v2
121+
with:
122+
version: "${{ matrix.NXF_VER }}"
123+
124+
- name: Disk space cleanup
125+
uses: jlumbroso/free-disk-space@54081f138730dfa15788a46383842cd2f914a1be # v1.3.1
126+
127+
- name: Run pipeline with various parameters (docker)
128+
run: |
129+
nextflow run ${GITHUB_WORKSPACE} -profile test,docker --outdir ./results ${{ matrix.parameters }}
130+
131+
- name: Run pipeline with various parameters (singularity)
132+
run: |
133+
nextflow run ${GITHUB_WORKSPACE} -profile test,singularity --outdir ./results ${{ matrix.parameters }}
134+
if: "${{ github.base_ref == 'master' }}"
135+
136+
- name: Run pipeline with various parameters (conda)
137+
run: |
138+
nextflow run ${GITHUB_WORKSPACE} -profile test,conda --outdir ./results ${{ matrix.parameters }}
94139
if: "${{ github.base_ref == 'master' }}"

0 commit comments

Comments
 (0)