-
Notifications
You must be signed in to change notification settings - Fork 708
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1272 from nf-core/pipeline_level_tests_simple
Simple pipeline level nf-tests
- Loading branch information
Showing
10 changed files
with
115 additions
and
72 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,73 +19,6 @@ concurrency: | |
group: "${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}" | ||
cancel-in-progress: true | ||
jobs: | ||
star_salmon: | ||
name: Test STAR Salmon with workflow parameters | ||
if: ${{ (github.event_name != 'push' || (github.event_name == 'push' && github.repository == 'nf-core/rnaseq')) && !contains(github.event.head_commit.message, '[ci fast]') }} | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
parameters: | ||
- "--skip_qc" | ||
- "--skip_trimming" | ||
- "--min_mapped_reads 90" | ||
- "--with_umi" | ||
- "--with_umi --skip_trimming" | ||
- "--remove_ribo_rna --skip_qualimap" | ||
- "--bam_csi_index" | ||
- "--save_align_intermeds --save_reference" | ||
- "--featurecounts_group_type false" | ||
- "--trimmer fastp" | ||
|
||
steps: | ||
- name: Check out pipeline code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup Nextflow | ||
uses: nf-core/[email protected] | ||
|
||
- name: Run pipeline with STAR and various parameters | ||
run: | | ||
nextflow run ${GITHUB_WORKSPACE} -profile test,docker --aligner star_salmon ${{ matrix.parameters }} --outdir ./results | ||
star_rsem: | ||
name: Test STAR RSEM with workflow parameters | ||
if: ${{ (github.event_name != 'push' || (github.event_name == 'push' && github.repository == 'nf-core/rnaseq')) && !contains(github.event.head_commit.message, '[ci fast]') }} | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
parameters: | ||
- "--skip_qc" | ||
steps: | ||
- name: Check out pipeline code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup Nextflow | ||
uses: nf-core/[email protected] | ||
|
||
- name: Run pipeline with RSEM STAR and various parameters | ||
run: | | ||
nextflow run ${GITHUB_WORKSPACE} -profile test,docker --aligner star_rsem ${{ matrix.parameters }} --outdir ./results | ||
hisat2: | ||
name: Test HISAT2 with workflow parameters | ||
if: ${{ (github.event_name != 'push' || (github.event_name == 'push' && github.repository == 'nf-core/rnaseq')) && !contains(github.event.head_commit.message, '[ci fast]') }} | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
parameters: | ||
- "--skip_qc" | ||
steps: | ||
- name: Check out pipeline code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup Nextflow | ||
uses: nf-core/[email protected] | ||
|
||
- name: Run pipeline with HISAT2 and various parameters | ||
run: | | ||
nextflow run ${GITHUB_WORKSPACE} -profile test,docker --aligner hisat2 ${{ matrix.parameters }} --outdir ./results | ||
pseudo: | ||
name: Test Pseudoaligners with workflow parameters | ||
if: ${{ (github.event_name != 'push' || (github.event_name == 'push' && github.repository == 'nf-core/rnaseq')) && !contains(github.event.head_commit.message, '[ci fast]') }} | ||
|
@@ -244,7 +177,7 @@ jobs: | |
|
||
confirm-pass: | ||
runs-on: ubuntu-latest | ||
needs: [test, star_salmon, star_rsem, hisat2, pseudo] | ||
needs: [test, pseudo] | ||
if: always() | ||
steps: | ||
- name: All tests ok | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
tests/main.nf.test.snap → tests/tests/default/main.nf.test.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
nextflow_pipeline { | ||
|
||
name "Test pipeline" | ||
script "../../../main.nf" | ||
tag "rnaseq" | ||
tag "PIPELINE" | ||
|
||
test("--featurecounts_group_type false") { | ||
|
||
when { | ||
params { | ||
outdir = "$outputDir" | ||
input = 'https://raw.githubusercontent.com/nf-core/test-datasets/7f1614baeb0ddf66e60be78c3d9fa55440465ac8/samplesheet/v3.10/samplesheet_test.csv' | ||
featurecounts_group_type = false | ||
} | ||
} | ||
|
||
then { | ||
assert workflow.success | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
nextflow_pipeline { | ||
|
||
name "Test pipeline" | ||
script "../../../main.nf" | ||
tag "rnaseq" | ||
tag "PIPELINE" | ||
|
||
test("--min_mapped_reads 90") { | ||
|
||
when { | ||
params { | ||
outdir = "$outputDir" | ||
input = 'https://raw.githubusercontent.com/nf-core/test-datasets/7f1614baeb0ddf66e60be78c3d9fa55440465ac8/samplesheet/v3.10/samplesheet_test.csv' | ||
min_mapped_reads = 90 | ||
} | ||
} | ||
|
||
then { | ||
assert workflow.success | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
nextflow_pipeline { | ||
|
||
name "Test pipeline" | ||
script "../../../main.nf" | ||
tag "rnaseq" | ||
tag "PIPELINE" | ||
|
||
test("--remove_ribo_rna") { | ||
|
||
when { | ||
params { | ||
outdir = "$outputDir" | ||
input = 'https://raw.githubusercontent.com/nf-core/test-datasets/7f1614baeb0ddf66e60be78c3d9fa55440465ac8/samplesheet/v3.10/samplesheet_test.csv' | ||
remove_ribo_rna = true | ||
} | ||
} | ||
|
||
then { | ||
assert workflow.success | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
nextflow_pipeline { | ||
|
||
name "Test pipeline" | ||
script "../../../main.nf" | ||
tag "rnaseq" | ||
tag "PIPELINE" | ||
|
||
test("--skip_qc") { | ||
|
||
when { | ||
params { | ||
outdir = "$outputDir" | ||
input = 'https://raw.githubusercontent.com/nf-core/test-datasets/7f1614baeb0ddf66e60be78c3d9fa55440465ac8/samplesheet/v3.10/samplesheet_test.csv' | ||
skip_qc = true | ||
} | ||
} | ||
|
||
then { | ||
assert workflow.success | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
nextflow_pipeline { | ||
|
||
name "Test pipeline" | ||
script "../../../main.nf" | ||
tag "rnaseq" | ||
tag "PIPELINE" | ||
|
||
test("--skip_trimming") { | ||
|
||
when { | ||
params { | ||
outdir = "$outputDir" | ||
input = 'https://raw.githubusercontent.com/nf-core/test-datasets/7f1614baeb0ddf66e60be78c3d9fa55440465ac8/samplesheet/v3.10/samplesheet_test.csv' | ||
skip_qc = true | ||
} | ||
} | ||
|
||
then { | ||
assert workflow.success | ||
} | ||
} | ||
} |