-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Migrate from nf-val to nf-schema. Basic nf-test (real data)
- Loading branch information
1 parent
1edc01b
commit 988ca49
Showing
12 changed files
with
99 additions
and
54 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 |
---|---|---|
@@ -0,0 +1,36 @@ | ||
name: nf-test CI | ||
on: | ||
push: | ||
branches: | ||
- dev | ||
pull_request: | ||
release: | ||
types: [published] | ||
|
||
env: | ||
NXF_ANSI_LOG: false | ||
NFTEST_VER: "0.8.4" | ||
|
||
jobs: | ||
test: | ||
name: Run pipeline with test data | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Check out pipeline code | ||
uses: actions/checkout@v4 | ||
|
||
- uses: actions/setup-java@99b8673ff64fbf99d8d325f52d9a5bdedb8483e9 # v4 | ||
with: | ||
distribution: "temurin" | ||
java-version: "17" | ||
|
||
- name: Setup Nextflow | ||
uses: nf-core/setup-nextflow@v2 | ||
|
||
- name: Install nf-test | ||
uses: nf-core/setup-nf-test@v1 | ||
|
||
- name: Run pipeline with test data | ||
run: | | ||
nf-test test |
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 |
---|---|---|
|
@@ -12,3 +12,5 @@ results/ | |
.pytest_cache/ | ||
|
||
assets/fetch_tool_credentials.json | ||
.nf-test.log | ||
.nf-test/ |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 was deleted.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -72,18 +72,18 @@ params { | |
max_cpus = 32 | ||
max_time = '168.h' // 7 days | ||
|
||
// Schema validation default options | ||
validationFailUnrecognisedParams = false | ||
validationLenientMode = false | ||
validationShowHiddenParams = false | ||
validate_params = true | ||
|
||
// Assembler versions | ||
spades_version = "3.15.5" | ||
megahit_version = "1.2.9" | ||
|
||
} | ||
|
||
validation { | ||
failUnrecognisedParams = true | ||
lenientMode = false | ||
showHiddenParams = false | ||
} | ||
|
||
// Load base.config by default for all pipelines | ||
includeConfig 'conf/base.config' | ||
|
||
|
@@ -192,7 +192,7 @@ singularity.registry = 'quay.io' | |
|
||
// Nextflow plugins | ||
plugins { | ||
id 'nf-[email protected]' // Validation of pipeline parameters and creation of an input channel from a sample sheet | ||
id 'nf-[email protected]' | ||
} | ||
|
||
// Export these variables to prevent local Python/R libraries from conflicting with those in the container | ||
|
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,7 @@ | ||
config { | ||
|
||
testsDir "tests" | ||
workDir ".nf-test" | ||
configFile "tests/nextflow.config" | ||
profile "test,docker" | ||
} |
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,25 @@ | ||
nextflow_pipeline { | ||
|
||
name "Test Workflow EBIMETAGENOMICS_MIASSEMBLER" | ||
script "main.nf" | ||
|
||
test("Should run without failures") { | ||
|
||
when { | ||
params { | ||
outdir = "tests/results" | ||
bwamem2_reference_genomes_folder = "$projectDir/tests/human_phix/bwa2mem" | ||
blast_reference_genomes_folder = "$projectDir/tests/human_phix/blast" | ||
} | ||
} | ||
|
||
then { | ||
with(workflow) { | ||
assert success | ||
assert trace.tasks().size() == 19 | ||
} | ||
} | ||
|
||
} | ||
|
||
} |
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,5 @@ | ||
/* | ||
======================================================================================== | ||
Nextflow config file for running tests | ||
======================================================================================== | ||
*/ |
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