Skip to content

Commit dca3299

Browse files
authored
Add docker profile for tests (#33)
* Test with docker container * whitespace * filter out WARNING generated using apptainer/docker profile
1 parent c29c621 commit dca3299

File tree

4 files changed

+8
-2
lines changed

4 files changed

+8
-2
lines changed

.github/scripts/run_pipeline.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ set -eo pipefail
44

55
nextflow run main.nf \
66
-profile "${PROFILE}" \
7-
--cache ${HOME}/.conda/envs \
87
--assembly_input .github/data/assemblies \
98
--outdir .github/data/test_output \
109
--collect_outputs \

.github/workflows/tests.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@ jobs:
1919
- nextflow_version: "24.10.6"
2020
java_version: "17"
2121
profile: "conda"
22+
- nextflow_version: "24.10.6"
23+
java_version: "17"
24+
profile: "docker"
2225
name: Nextflow v${{ matrix.nextflow_version }} / ${{ matrix.profile }}
2326
runs-on: ubuntu-latest
2427
steps:

modules/quast.nf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ process quast {
1414
printf -- "- process_name: quast\\n" >> ${sample_id}_quast_provenance.yml
1515
printf -- " tools:\\n" >> ${sample_id}_quast_provenance.yml
1616
printf -- " - tool_name: quast\\n" >> ${sample_id}_quast_provenance.yml
17-
printf -- " tool_version: \$(quast --version | cut -d ' ' -f 2 | tr -d 'v')\\n" >> ${sample_id}_quast_provenance.yml
17+
printf -- " tool_version: \$(quast --version | grep --invert-match '^WARNING' | cut -d ' ' -f 2 | tr -d 'v')\\n" >> ${sample_id}_quast_provenance.yml
1818
printf -- " parameters:\\n" >> ${sample_id}_quast_provenance.yml
1919
printf -- " - parameter: --space-efficient\\n" >> ${sample_id}_quast_provenance.yml
2020
printf -- " value: null\\n" >> ${sample_id}_quast_provenance.yml

nextflow.config

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,4 +58,8 @@ profiles {
5858
apptainer.cacheDir = params.cache
5959
}
6060
}
61+
docker {
62+
docker.enabled = true
63+
process.container = "ghcr.io/bccdc-phl/mlst-nf:faf21e8ae18de0c2"
64+
}
6165
}

0 commit comments

Comments
 (0)