Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
444 commits
Select commit Hold shift + click to select a range
ab389fc
Run second FastQC/Nanoplot when host removal is asked for
erikrikarddaniel Jun 13, 2025
6b2a563
Merge branch 'skip-qc' of github.com:erikrikarddaniel/nf-core-mag int…
erikrikarddaniel Jun 13, 2025
3ee39bd
Update CHANGELOG.md
erikrikarddaniel Jun 18, 2025
27e105e
Update nextflow_schema.json
erikrikarddaniel Jun 18, 2025
a61ef99
Update nextflow_schema.json
erikrikarddaniel Jun 18, 2025
244c9e2
Fall back defualt test snapshot to just successful run
jfy133 Jun 18, 2025
0b516b5
[automated] Fix code linting
nf-core-bot Jun 18, 2025
cb0dbc7
Merge pull request #830 from nf-core/test-default-config
jfy133 Jun 18, 2025
3b69a6e
Fix conditionals for FASTQC_TRIMMED and LONGREAD_FILTERED
erikrikarddaniel Jun 18, 2025
396ff2f
Merge branch 'skip-qc' of github.com:erikrikarddaniel/nf-core-mag int…
erikrikarddaniel Jun 18, 2025
0f18d05
Better description of skip_longread_qc
erikrikarddaniel Jun 18, 2025
4c74f14
Merge pull request #829 from erikrikarddaniel/skip-qc
jfy133 Jun 20, 2025
d8349e4
Update nextflow_schema.json
jfy133 Jun 20, 2025
c6f7402
Start singleend config
jfy133 Jun 20, 2025
2ae5c66
Merge pull request #831 from nf-core/fix-docs-typo
jfy133 Jun 21, 2025
ec68306
Merge branch 'dev' into new-config-test_singleend
jfy133 Jun 21, 2025
c04c004
Fix ancient DNA versions reporting
jfy133 Jun 21, 2025
cdd5544
Add test and single end snapshot
jfy133 Jun 21, 2025
53c96e0
Fix test_minimal snapshot for date only embedding in Fastqc HTML
jfy133 Jun 21, 2025
14b0feb
Fix version reporting in virus identification and single_End test
jfy133 Jun 21, 2025
d936a60
Update pydamage modules to 1.0.0 and fix version reporting
jfy133 Jun 21, 2025
99e2ac0
Fix pydamage filter args positioning for comaptilbity with -t
jfy133 Jun 21, 2025
2a402f3
Fix pydamage version issue in snapshot
jfy133 Jun 21, 2025
c2875e6
Update subworkflows/local/binning.nf
jfy133 Jun 21, 2025
7dee677
Update subworkflows/local/binning.nf
jfy133 Jun 21, 2025
86c1c79
Merge pull request #832 from nf-core/new-config-test_singleend
jfy133 Jun 21, 2025
9edeca1
Template update for nf-core/tools version 3.3.2
nf-core-bot Jul 8, 2025
87846b3
Merge branch 'dev' into nf-core-template-merge-3.3.2
dialvarezs Jul 16, 2025
0962a84
Re add things deleted from rocrate
dialvarezs Jul 16, 2025
6926f07
Zenodo DOI
dialvarezs Jul 16, 2025
790b05b
Update snapshots
dialvarezs Jul 16, 2025
771e665
Styling
dialvarezs Jul 16, 2025
411499d
Exclude parquet file from test snapshot
dialvarezs Jul 16, 2025
9ba1dc4
Update changelog
dialvarezs Jul 16, 2025
757f429
Update changelog
dialvarezs Jul 17, 2025
28ca96a
Merge pull request #837 from nf-core/nf-core-template-merge-3.3.2
dialvarezs Jul 17, 2025
3bf7b5d
added minimum required changes
harper357 Jul 26, 2025
684a926
added TODO comments
harper357 Jul 26, 2025
8777e13
fix module name
harper357 Jul 28, 2025
a98975a
remove TODOs
harper357 Jul 28, 2025
8604d2b
adding hidden columns to general stats
harper357 Jul 28, 2025
f2205c1
bin_qcs emit multiqc_files
harper357 Jul 30, 2025
0ce73c8
added gtdbtk_summary to multiqc_files
harper357 Jul 30, 2025
949c2f4
add the correct files to multiqc_files
harper357 Jul 31, 2025
52e5a17
remove binqc_tool check
harper357 Jul 31, 2025
08d6325
mix gtdbtk output into multiqc_files
harper357 Jul 31, 2025
6d185bc
sync table columns with MultiQC modules
harper357 Jul 31, 2025
098bb2e
added new tools to MultiQC section
harper357 Aug 5, 2025
49f7035
[automated] Fix code linting
nf-core-bot Aug 6, 2025
a1e189f
added name to contributors list
harper357 Aug 6, 2025
a2a9b42
added update to changelog
harper357 Aug 6, 2025
ce006ae
Merge branch 'dev' into multiqc-config_update
harper357 Aug 6, 2025
ae28591
nf-core lint fix
harper357 Aug 6, 2025
49de2bd
Merge pull request #841 from harper357/multiqc-config_update
harper357 Aug 6, 2025
8753557
Fix bt2l versions of bowtie2 index files not being picked up
jfy133 Aug 11, 2025
d411d17
Clarify slightly that single/paried reads correspond only to short reads
jfy133 Aug 11, 2025
4b776c4
Correct PR
jfy133 Aug 11, 2025
ad12c54
Merge pull request #843 from nf-core/support-big-genomes-bowtei2
jfy133 Aug 11, 2025
9554cf1
Change mechanism of importing 'assets' derived reference genomes to f…
jfy133 Aug 11, 2025
78b0995
Update changelog
jfy133 Aug 11, 2025
4dd0c2a
Merge pull request #844 from nf-core/improved-schema-validation
jfy133 Aug 11, 2025
f03ee05
docs: add `group` parameter heading
vinisalazar Aug 12, 2025
b4107ba
Update bbmap/bbnorm
erikrikarddaniel Aug 12, 2025
d3ca892
Reduce bbnorms memory to 0.8
erikrikarddaniel Aug 12, 2025
13bfd00
Add forgotten new module files for bbnorm
erikrikarddaniel Aug 13, 2025
9d2c242
Generate patch for bbmap/bbnorm
erikrikarddaniel Aug 13, 2025
e5d1f2c
Update CHANGELOG.md
erikrikarddaniel Aug 13, 2025
1590771
Prettier
erikrikarddaniel Aug 13, 2025
a079eaa
Merge pull request #847 from erikrikarddaniel/reduce-bbnorm-memory
erikrikarddaniel Aug 13, 2025
f91fa24
Update docs/usage.md
jfy133 Aug 13, 2025
5980983
Test alternatives (WIP)
dialvarezs Aug 13, 2025
c17c215
Test alternatives (WIP 2)
dialvarezs Aug 14, 2025
40e3cef
docs: editing `group` description
vinisalazar Aug 14, 2025
3299137
Update docs/usage.md
jfy133 Aug 15, 2025
478d55f
Merge pull request #846 from vinisalazar/patch
jfy133 Aug 15, 2025
ad7b67a
Update CHANGELOG.md and README.md
vinisalazar Aug 15, 2025
04cd828
Fix RO crate
jfy133 Aug 15, 2025
9025d61
Merge pull request #849 from vinisalazar/dev
jfy133 Aug 15, 2025
a2dc695
Remove incorrectly used `.first()`
jfy133 Aug 15, 2025
d609084
Update CHANGELOG.md
jfy133 Aug 15, 2025
5d400ae
Update CHANGELOG.md
jfy133 Aug 15, 2025
4ad8d5e
Merge pull request #850 from nf-core/fix_gdtbtk_version_reporting
jfy133 Aug 15, 2025
8321144
Test alternatives (complete)
dialvarezs Aug 16, 2025
817bbf4
[automated] Fix code linting
nf-core-bot Aug 16, 2025
fe2a559
Exclude file from test
dialvarezs Aug 16, 2025
06c4071
Merge branch 'dev-test-alternatives' of github.com:dialvarezs/mag int…
dialvarezs Aug 16, 2025
c03c37b
Fix count of successful tasks
dialvarezs Aug 16, 2025
683f89e
Replace local pool_ modules by cat/fastq
dialvarezs Aug 16, 2025
1f46623
Improve local modules structure
dialvarezs Aug 16, 2025
61b9f1d
Remove local nanolyse module
dialvarezs Aug 16, 2025
68514c1
Improve structure of local subworkflows
dialvarezs Aug 16, 2025
59388ea
Formatting
dialvarezs Aug 16, 2025
f78039e
Update changelog
dialvarezs Aug 16, 2025
5bced22
Indentation
dialvarezs Aug 19, 2025
261b729
Add log checks
dialvarezs Aug 19, 2025
0701c85
Address review comments
dialvarezs Aug 19, 2025
cdf72b2
Update modules/local/samtools/unmapped/main.nf
dialvarezs Aug 19, 2025
6e13b45
Update changelog
dialvarezs Aug 19, 2025
d3340e8
Merge branch 'local-module-restructure' of github.com:dialvarezs/mag …
dialvarezs Aug 19, 2025
4f1c13c
Fix task counter
dialvarezs Aug 19, 2025
f8b5b6b
Improve checks
dialvarezs Aug 19, 2025
3ed9ed8
Flatten local modules and subworkflows
dialvarezs Aug 20, 2025
054d363
Add fasta tests
dialvarezs Aug 21, 2025
57d5a72
Fix tasks number
dialvarezs Aug 21, 2025
33a54b6
Improve truthy checks
dialvarezs Aug 21, 2025
1d2e3e1
Merge pull request #848 from dialvarezs/dev-test-alternatives
dialvarezs Aug 21, 2025
baf9512
Add local subwf meta files
dialvarezs Aug 21, 2025
0f99859
Address comments
dialvarezs Aug 21, 2025
b7c818c
Merge pull request #851 from dialvarezs/local-module-restructure
dialvarezs Aug 21, 2025
a6d2844
Add missing versions mixing and move version calls after each module …
jfy133 Aug 22, 2025
a3e647e
Final version fixes and moving
jfy133 Aug 22, 2025
1454a5a
Update CHANGELOG
jfy133 Aug 22, 2025
bfcb18f
Update subworkflows/local/assembly_longread/main.nf
jfy133 Aug 22, 2025
ffd9852
Replace sceond long ternary with proper if-else
jfy133 Aug 22, 2025
d00dfb5
Remove if/else statement and revert to ternary because cannot otherwi…
jfy133 Aug 22, 2025
4a1d438
Remove `.first()` from everywhere as not necessary and can mess with …
jfy133 Aug 22, 2025
97cf474
Revert "Remove `.first()` from everywhere as not necessary and can me…
jfy133 Aug 22, 2025
7f2bed0
Correctly remove `.first()` from everywhere as not necessary and can …
jfy133 Aug 22, 2025
b9b222e
Use simplified corutils version catch from @mahesh-panchal
jfy133 Aug 22, 2025
2aad5d4
Fix wrong version placement
jfy133 Aug 22, 2025
a73cae3
Update modules, round 1
dialvarezs Aug 22, 2025
ec59db7
Update modules, round 2
dialvarezs Aug 22, 2025
a900d1c
Update modules, round 3
dialvarezs Aug 22, 2025
72ee473
Update modules, round 4
dialvarezs Aug 22, 2025
10a6b94
Update modules, round 5
dialvarezs Aug 22, 2025
2e6ac97
Update modules, round 6
dialvarezs Aug 22, 2025
dec7870
Update modules, round 7
dialvarezs Aug 22, 2025
8d6e2ca
Update nf-core subworkflows
dialvarezs Aug 22, 2025
48110cc
Bump BUSCO version in snapshot
dialvarezs Aug 22, 2025
e184a52
Update metabat2
dialvarezs Aug 22, 2025
4d72ed3
Fix BUSCO version in changelog
dialvarezs Aug 22, 2025
193e5f9
Fix metabat2 snaps
dialvarezs Aug 22, 2025
d0c1533
Merge pull request #853 from dialvarezs/update-modules
dialvarezs Aug 22, 2025
fb532e7
Use correct flags for flye and update some snapshots
jfy133 Aug 25, 2025
2d7b9f1
Typo fix for metaMDG option
jfy133 Aug 25, 2025
290b338
Update porechop/abi to patched version to not result in duplicated reads
jfy133 Aug 25, 2025
b378fbf
Add new nf-test configs
dialvarezs Aug 25, 2025
2431e56
Old config cleanup
dialvarezs Aug 25, 2025
afe69d3
Fix autoformatting
jfy133 Aug 25, 2025
530e669
Merge branch 'dev' into fix-version-linting
jfy133 Aug 25, 2025
e1be7a7
Update changelog
dialvarezs Aug 25, 2025
2fa3ac8
Use correc tyaml
jfy133 Aug 25, 2025
d349d5f
Merge pull request #852 from nf-core/fix-version-linting
jfy133 Aug 25, 2025
c335a41
Merge remote-tracking branch 'upstream/dev' into nf-test-configs
dialvarezs Aug 26, 2025
22214cd
Update snapshots
dialvarezs Aug 26, 2025
0c48e6e
Add multiqc snapshots
dialvarezs Aug 26, 2025
08c4598
Update fastp
dialvarezs Aug 26, 2025
f13e8e3
Update bcftools
dialvarezs Aug 26, 2025
cbe42b0
Update adapterremoval
dialvarezs Aug 26, 2025
f0c1789
Update dastool
dialvarezs Aug 26, 2025
31d7adc
Update freebayes
dialvarezs Aug 26, 2025
0733af8
Update gtdbtk
dialvarezs Aug 26, 2025
cfd2d9f
Update porechop
dialvarezs Aug 26, 2025
4522521
Improve bcftools usage
dialvarezs Aug 26, 2025
dab1414
Update genomad
dialvarezs Aug 26, 2025
b86c379
Update hybrid
dialvarezs Aug 26, 2025
3bb31c7
Update snapshots
dialvarezs Aug 26, 2025
d475264
Update changelog
dialvarezs Aug 26, 2025
75055a4
Update snapshots
dialvarezs Aug 26, 2025
43d7d49
Update snapshot
dialvarezs Aug 26, 2025
3172bf0
Standardise header sand tags
jfy133 Aug 28, 2025
7c2cca1
Use porechop_porechop in test_hbyrid profile
jfy133 Aug 28, 2025
94b2658
update snapshot to include correct tool
jfy133 Aug 28, 2025
0bef352
Merge branch 'dev' into porechop-update
jfy133 Sep 3, 2025
5eb6e09
Add assembly input nf-test (WIP)
dialvarezs Sep 3, 2025
266f271
Update CHANGELOG.md
jfy133 Sep 3, 2025
799f3e7
Add metaeuk
dialvarezs Sep 3, 2025
a8087b6
Merge pull request #854 from nf-core/porechop-update
jfy133 Sep 3, 2025
3f4102a
Update nf-schema to stop all params being reported as erroring out
jfy133 Sep 5, 2025
d913c30
Fix URL typo
jfy133 Sep 5, 2025
a233e23
Fix typo in github handlge
jfy133 Sep 5, 2025
98cd7f5
Fix typo in github handlge
jfy133 Sep 5, 2025
b50d47f
Add HiRSE code promo badge
jfy133 Sep 5, 2025
00e45d8
Merge branch 'dev' into update-modules-2
jfy133 Sep 5, 2025
9da3e34
Merge pull request #856 from dialvarezs/update-modules-2
jfy133 Sep 5, 2025
44c49d3
Fix RO create
jfy133 Sep 5, 2025
6e229be
Merge pull request #858 from nf-core/fix-overzealous-schemaerrors
jfy133 Sep 5, 2025
c060585
Use large disk to prevent storage issues
dialvarezs Sep 5, 2025
53d50bc
Merge branch 'nf-test-configs' of github.com:dialvarezs/mag into nf-t…
dialvarezs Sep 5, 2025
b7415b9
Merge remote-tracking branch 'upstream/dev' into nf-test-configs
dialvarezs Sep 5, 2025
137bb60
Enable GUNC
dialvarezs Sep 5, 2025
16759ff
Update assembly_input test
dialvarezs Sep 12, 2025
f014dbc
Update snapshots (nextflow version)
dialvarezs Sep 12, 2025
e6e7b0d
Update metaeuk config
dialvarezs Sep 12, 2025
ed8af48
Revert to fasta input for metaeuk
dialvarezs Sep 13, 2025
07862c7
Update changelog
dialvarezs Sep 13, 2025
22e67aa
Fix nextflow version
dialvarezs Sep 13, 2025
c5ab8bd
Fix version pattern capture
jfy133 Sep 15, 2025
9f8ef9a
Enable metauk using swissprot + refined bins only
dialvarezs Sep 16, 2025
439a02c
Update CHANGELOG.md
dialvarezs Sep 16, 2025
81bc495
Update snapshots
dialvarezs Sep 16, 2025
85c1a4b
Merge pull request #855 from dialvarezs/nf-test-configs
jfy133 Sep 17, 2025
50238a1
Bump version using nf-core tools
jfy133 Sep 17, 2025
fb76031
Update metromap, deprecate old diagram, use metromap in README
jfy133 Sep 17, 2025
09f3af0
nicer HiRSE badge
jfy133 Sep 17, 2025
102bf1d
[automated] Fix code linting
nf-core-bot Sep 17, 2025
a42950b
Fix ro crate REAMDE change
jfy133 Sep 17, 2025
d2c24d6
Merge branch 'version-bump-lrrelease!' of github.com:nf-core/mag into…
jfy133 Sep 17, 2025
3d1560f
Remove short-read profiling from metormap
jfy133 Sep 17, 2025
78e0191
Update all snapshots to include latest pipeline version, standarding …
jfy133 Sep 17, 2025
722a3b3
Update snapshots
dialvarezs Sep 17, 2025
16b2508
Update snapshot
dialvarezs Sep 18, 2025
c6a04e2
Increase shards
dialvarezs Sep 18, 2025
4bd74ed
Merge pull request #863 from nf-core/version-bump-lrrelease!
jfy133 Sep 18, 2025
4830f06
Update GTDBK to version that works with conda
jfy133 Sep 19, 2025
1154edd
update CHANGELOG
jfy133 Sep 19, 2025
0c41a66
Fix GTDBTK version in snapshot
jfy133 Sep 19, 2025
1f90a5d
Merge pull request #865 from nf-core/fiix-gtdbtk-numpy-issue
jfy133 Sep 19, 2025
dc6c4eb
Update docs/usage.md
jfy133 Sep 19, 2025
9d1d4de
Address comments from @erikrikarddaniel
jfy133 Sep 19, 2025
ea5f3cc
Update docs/usage.md
jfy133 Sep 19, 2025
3b52fb4
Update docs/usage.md
jfy133 Sep 19, 2025
d0930d5
Merge pull request #866 from nf-core/release-5_0_0-comments
jfy133 Sep 19, 2025
c648ab4
Update chagnelog date and metromap modifications after feedback from …
jfy133 Sep 19, 2025
d2a00d4
update snapshot
jfy133 Sep 19, 2025
7f7f40c
Improve CONDA pinning in several modules to match snapshot and ensure…
jfy133 Sep 21, 2025
7419ceb
bump NANOPLOT to 1.46.1 to fix kaleodio issue in conda
jfy133 Sep 21, 2025
51e3589
Bump NANOPLOT versions in snaphost
jfy133 Sep 21, 2025
c446f9e
Use correct repository
jfy133 Sep 21, 2025
287a756
Update CONCOCT to use latest conda build and fix version reporting
jfy133 Sep 21, 2025
60656c4
Update all snapshots fror hardcoded coreuttlis
jfy133 Sep 22, 2025
61f7689
Syncronise local rename modules to match container of UNTAR module (t…
jfy133 Sep 22, 2025
ff34cf2
Fix GTDBTK DB prep
jfy133 Sep 22, 2025
ed68871
And for single end
jfy133 Sep 22, 2025
4e2c2aa
Use correct version for update coreutrils capture
jfy133 Sep 22, 2025
c9061e5
Remove quotes to make snapshot
jfy133 Sep 22, 2025
ef788e6
Remove quotes everywehere for the coreutils
jfy133 Sep 22, 2025
be935e1
Standardise remaining core utils conda/containers and update snapshots
jfy133 Sep 23, 2025
a77f69e
Update hybrid snapshot too
jfy133 Sep 23, 2025
760346e
Use same container not just conda env for coreutils (to match with of…
jfy133 Sep 23, 2025
94aeedd
Remove variable MultiQC YAML files in longread only test
jfy133 Sep 23, 2025
6dc67e8
Use correct versions in snapshots for all TAR processes
jfy133 Sep 23, 2025
69a955e
Deprecate GDTBTK's --gtdb_mash parameter as no longer suppoted by the…
jfy133 Sep 23, 2025
330666c
Revert "Deprecate GDTBTK's --gtdb_mash parameter as no longer suppote…
jfy133 Sep 23, 2025
5916046
Re-deprecate mash_db bit retain -skip_ani_screen in GTDBTk process
jfy133 Sep 23, 2025
732304e
Typo fixes as noticed by @dialvarezs
jfy133 Sep 23, 2025
e7d9694
Implement option to skip FastANI screen in GTDB-Tk (to replace mash_d…
jfy133 Sep 23, 2025
8439cbd
Update nextflow_schema.json
jfy133 Sep 23, 2025
3cad22b
[automated] Fix code linting
nf-core-bot Sep 23, 2025
d752588
Improve parameter name for clarity and add changelog entry
jfy133 Sep 24, 2025
07a6696
Merge branch 'dev' of github.com:nf-core/mag into dev
jfy133 Sep 24, 2025
24fac49
Deactivate scratch on METASPADES to allow functioning with fusion
jfy133 Sep 24, 2025
f520d60
Use the correct Seqera (unofficial) approve from @FriederikeHanssen@e…
jfy133 Sep 24, 2025
17d88d5
Add missing --threads parameter for metaeuk easypredict
jfy133 Sep 25, 2025
19768c5
Make sure all custom exit code contiions are consistent, and add igno…
jfy133 Sep 29, 2025
39f79a8
Use latest GTDB download link
jfy133 Sep 29, 2025
ac6898d
Use correct URLs for test data samplesheet and GTDB, deactivate CAT d…
jfy133 Sep 29, 2025
ee2f6da
Try CheckM2 instead of BUSCO
jfy133 Sep 30, 2025
8472013
Update CHANGELOG.md
jfy133 Sep 30, 2025
a101a75
Fix linting (mismtach of schema with config, typo in module name in m…
jfy133 Sep 30, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
37 changes: 0 additions & 37 deletions .editorconfig

This file was deleted.

2 changes: 1 addition & 1 deletion .github/CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ If you wish to contribute a new step, please use the following coding standards:
5. Add any new parameters to `nextflow_schema.json` with help text (via the `nf-core pipelines schema build` tool).
6. Add sanity checks and validation for all relevant parameters.
7. Perform local tests to validate that the new code works as expected.
8. If applicable, add a new test command in `.github/workflow/ci.yml`.
8. If applicable, add a new test in the `tests` directory.
9. Update MultiQC config `assets/multiqc_config.yml` so relevant suffixes, file name clean up and module plots are in the appropriate order. If applicable, add a [MultiQC](https://https://multiqc.info/) module.
10. Add a description of the output files and if relevant any appropriate images from the MultiQC report to `docs/output.md`.

Expand Down
4 changes: 2 additions & 2 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@ These are the most common things requested on pull requests (PRs).

Remember that PRs should be made against the dev branch, unless you're preparing a pipeline release.

Learn more about contributing: [CONTRIBUTING.md](https://github.com/nf-core/mag/tree/master/.github/CONTRIBUTING.md)
Learn more about contributing: [CONTRIBUTING.md](https://github.com/nf-core/mag/tree/main/.github/CONTRIBUTING.md)
-->

## PR checklist

- [ ] This comment contains a description of changes (with reason).
- [ ] If you've fixed a bug or added code that should be tested, add tests!
- [ ] If you've added a new tool - have you followed the pipeline conventions in the [contribution docs](https://github.com/nf-core/mag/tree/master/.github/CONTRIBUTING.md)
- [ ] If you've added a new tool - have you followed the pipeline conventions in the [contribution docs](https://github.com/nf-core/mag/tree/main/.github/CONTRIBUTING.md)
- [ ] If necessary, also make a PR on the nf-core/mag _branch_ on the [nf-core/test-datasets](https://github.com/nf-core/test-datasets) repository.
- [ ] Make sure your code lints (`nf-core pipelines lint`).
- [ ] Ensure the test suite passes (`nextflow run . -profile test,docker --outdir <OUTDIR>`).
Expand Down
69 changes: 69 additions & 0 deletions .github/actions/get-shards/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
name: "Get number of shards"
description: "Get the number of nf-test shards for the current CI job"
inputs:
max_shards:
description: "Maximum number of shards allowed"
required: true
paths:
description: "Component paths to test"
required: false
tags:
description: "Tags to pass as argument for nf-test --tag parameter"
required: false
outputs:
shard:
description: "Array of shard numbers"
value: ${{ steps.shards.outputs.shard }}
total_shards:
description: "Total number of shards"
value: ${{ steps.shards.outputs.total_shards }}
runs:
using: "composite"
steps:
- name: Install nf-test
uses: nf-core/setup-nf-test@v1
with:
version: ${{ env.NFT_VER }}
- name: Get number of shards
id: shards
shell: bash
run: |
# Run nf-test with dynamic parameter
nftest_output=$(nf-test test \
--profile +docker \
$(if [ -n "${{ inputs.tags }}" ]; then echo "--tag ${{ inputs.tags }}"; fi) \
--dry-run \
--ci \
--changed-since HEAD^) || {
echo "nf-test command failed with exit code $?"
echo "Full output: $nftest_output"
exit 1
}
echo "nf-test dry-run output: $nftest_output"
# Default values for shard and total_shards
shard="[]"
total_shards=0
# Check if there are related tests
if echo "$nftest_output" | grep -q 'No tests to execute'; then
echo "No related tests found."
else
# Extract the number of related tests
number_of_shards=$(echo "$nftest_output" | sed -n 's|.*Executed \([0-9]*\) tests.*|\1|p')
if [[ -n "$number_of_shards" && "$number_of_shards" -gt 0 ]]; then
shards_to_run=$(( $number_of_shards < ${{ inputs.max_shards }} ? $number_of_shards : ${{ inputs.max_shards }} ))
shard=$(seq 1 "$shards_to_run" | jq -R . | jq -c -s .)
total_shards="$shards_to_run"
else
echo "Unexpected output format. Falling back to default values."
fi
fi
# Write to GitHub Actions outputs
echo "shard=$shard" >> $GITHUB_OUTPUT
echo "total_shards=$total_shards" >> $GITHUB_OUTPUT
# Debugging output
echo "Final shard array: $shard"
echo "Total number of shards: $total_shards"
109 changes: 109 additions & 0 deletions .github/actions/nf-test/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,109 @@
name: "nf-test Action"
description: "Runs nf-test with common setup steps"
inputs:
profile:
description: "Profile to use"
required: true
shard:
description: "Shard number for this CI job"
required: true
total_shards:
description: "Total number of test shards(NOT the total number of matrix jobs)"
required: true
paths:
description: "Test paths"
required: true
tags:
description: "Tags to pass as argument for nf-test --tag parameter"
required: false
runs:
using: "composite"
steps:
- name: Setup Nextflow
uses: nf-core/setup-nextflow@v2
with:
version: "${{ env.NXF_VERSION }}"

- name: Set up Python
uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5
with:
python-version: "3.13"

- name: Install nf-test
uses: nf-core/setup-nf-test@v1
with:
version: "${{ env.NFT_VER }}"
install-pdiff: true

- name: Setup apptainer
if: contains(inputs.profile, 'singularity')
uses: eWaterCycle/setup-apptainer@main

- name: Set up Singularity
if: contains(inputs.profile, 'singularity')
shell: bash
run: |
mkdir -p $NXF_SINGULARITY_CACHEDIR
mkdir -p $NXF_SINGULARITY_LIBRARYDIR

- name: Conda setup
if: contains(inputs.profile, 'conda')
uses: conda-incubator/setup-miniconda@505e6394dae86d6a5c7fbb6e3fb8938e3e863830 # v3
with:
auto-update-conda: true
conda-solver: libmamba
conda-remove-defaults: true

- name: Run nf-test
shell: bash
env:
NFT_WORKDIR: ${{ env.NFT_WORKDIR }}
run: |
nf-test test \
--profile=+${{ inputs.profile }} \
$(if [ -n "${{ inputs.tags }}" ]; then echo "--tag ${{ inputs.tags }}"; fi) \
--ci \
--changed-since HEAD^ \
--verbose \
--tap=test.tap \
--shard ${{ inputs.shard }}/${{ inputs.total_shards }}

# Save the absolute path of the test.tap file to the output
echo "tap_file_path=$(realpath test.tap)" >> $GITHUB_OUTPUT

- name: Generate test summary
if: always()
shell: bash
run: |
# Add header if it doesn't exist (using a token file to track this)
if [ ! -f ".summary_header" ]; then
echo "# 🚀 nf-test results" >> $GITHUB_STEP_SUMMARY
echo "" >> $GITHUB_STEP_SUMMARY
echo "| Status | Test Name | Profile | Shard |" >> $GITHUB_STEP_SUMMARY
echo "|:------:|-----------|---------|-------|" >> $GITHUB_STEP_SUMMARY
touch .summary_header
fi

if [ -f test.tap ]; then
while IFS= read -r line; do
if [[ $line =~ ^ok ]]; then
test_name="${line#ok }"
# Remove the test number from the beginning
test_name="${test_name#* }"
echo "| ✅ | ${test_name} | ${{ inputs.profile }} | ${{ inputs.shard }}/${{ inputs.total_shards }} |" >> $GITHUB_STEP_SUMMARY
elif [[ $line =~ ^not\ ok ]]; then
test_name="${line#not ok }"
# Remove the test number from the beginning
test_name="${test_name#* }"
echo "| ❌ | ${test_name} | ${{ inputs.profile }} | ${{ inputs.shard }}/${{ inputs.total_shards }} |" >> $GITHUB_STEP_SUMMARY
fi
done < test.tap
else
echo "| ⚠️ | No test results found | ${{ inputs.profile }} | ${{ inputs.shard }}/${{ inputs.total_shards }} |" >> $GITHUB_STEP_SUMMARY
fi

- name: Clean up
if: always()
shell: bash
run: |
sudo rm -rf /home/ubuntu/tests/
4 changes: 2 additions & 2 deletions .github/workflows/awsfulltest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
run-platform:
name: Run AWS full tests
# run only if the PR is approved by at least 2 reviewers and against the master/main branch or manually triggered
if: github.repository == 'nf-core/mag' && github.event.review.state == 'approved' && (github.event.pull_request.base.ref == 'master' || github.event.pull_request.base.ref == 'main') || github.event_name == 'workflow_dispatch'
if: github.repository == 'nf-core/mag' && github.event.review.state == 'approved' && (github.event.pull_request.base.ref == 'master' || github.event.pull_request.base.ref == 'main') || github.event_name == 'workflow_dispatch' || github.event_name == 'release'
runs-on: ubuntu-latest
steps:
- name: Set revision variable
Expand All @@ -37,7 +37,7 @@ jobs:
}
profiles: test_full

- uses: actions/upload-artifact@v4
- uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
with:
name: Seqera Platform debug log file
path: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/awstest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
}
profiles: test

- uses: actions/upload-artifact@v4
- uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
with:
name: Seqera Platform debug log file
path: |
Expand Down
Loading
Loading