Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release 0.4.0 #514

Merged
merged 117 commits into from
Jan 15, 2025
Merged
Show file tree
Hide file tree
Changes from 93 commits
Commits
Show all changes
117 commits
Select commit Hold shift + click to select a range
d9091c5
Bump version to 0.4.0dev
fellen31 Aug 30, 2024
a7d1879
Merge pull request #344 from fellen31/bump-version
fellen31 Aug 30, 2024
16c4139
Add metro map
fellen31 Aug 30, 2024
ad3dbde
Merge pull request #345 from fellen31/add-metro-map
fellen31 Aug 30, 2024
87c67ef
Merge pull request #345 from fellen31/add-metro-map
fellen31 Aug 30, 2024
72a5bb8
Merge pull request #346 from fellen31/test-sv-calling
fellen31 Sep 2, 2024
dfafae9
Change SV multisample merging to allow for other callers
fellen31 Sep 2, 2024
d6b8f35
Delete modules/nf-core/bcftools/reheader/bcftools-reheader.diff
fellen31 Sep 3, 2024
690dadc
Update paraphase to compress and index VCFs within the module
fellen31 Sep 6, 2024
34c4bbd
Change SV multisample merging to allow for other callers
fellen31 Sep 2, 2024
bc1b3ac
Merge pull request #355 from fellen31/fix-paraphase
fellen31 Sep 6, 2024
ae40b9d
Remove filter_vep, add missing SNV section and PED file information t…
fellen31 Sep 6, 2024
610bfcd
Merge branch 'dev' into replace-sniffles-multisample
fellen31 Sep 6, 2024
d423172
Fix VEP sha in modules.json
fellen31 Sep 6, 2024
fa2772f
Merge pull request #356 from fellen31/remove-filter-vep-from-docs
fellen31 Sep 6, 2024
ec852a8
Merge pull request #351 from fellen31/replace-sniffles-multisample
fellen31 Sep 6, 2024
79aaae5
Remove fastq QC concatenation (#352)
fellen31 Sep 10, 2024
af56bc8
Merge branch 'master' into patch-merge
fellen31 Sep 11, 2024
26d2ca8
Merge pull request #360 from genomic-medicine-sweden/patch-merge
fellen31 Sep 11, 2024
57ec840
Add Zenodo link (#363)
fellen31 Sep 11, 2024
47d48a5
Add CI test profiles to nf-test, and only use nf-test for CI (#365)
fellen31 Sep 12, 2024
a8874db
Sort inputs when creating PED-files, so the output it always the same…
fellen31 Sep 12, 2024
c1e64e5
Add Severus as the default SV caller (#367)
fellen31 Sep 17, 2024
2902436
Add found_in tag (#371)
fellen31 Sep 17, 2024
7b3f100
Sort output SNVs (#370)
fellen31 Sep 17, 2024
c9d3e6b
Remove VEP plugins from test-data (#379)
fellen31 Sep 18, 2024
832847e
Fix untar VEP cache (#381)
fellen31 Sep 19, 2024
1450dd4
Update schema and docs (#382)
fellen31 Sep 20, 2024
e5ab7fe
Fixed, added and updated minimap2 presets (#393)
fellen31 Sep 23, 2024
f0b6e73
Patch to dev, pin dev version test-data (#397)
fellen31 Sep 23, 2024
c3c2ae2
Add longphase (#388)
fellen31 Sep 25, 2024
bf8f4d4
Sample names present twice in HiFiCNV output filenames (#402)
fellen31 Oct 1, 2024
da7d972
Test changed since without sharding (#404)
fellen31 Oct 1, 2024
1c305d4
Update usage.md (#407)
fellen31 Oct 4, 2024
16b1621
Add found in tag to CNV-calling (#403)
fellen31 Oct 7, 2024
70a88de
[Issue #406] Updated genmod to 3.8.3 (#410)
Schmytzi Oct 7, 2024
6fd0f50
[Issue #409] Updated longphase (#411)
Schmytzi Oct 7, 2024
b27f616
[Issue #377] Removed bcftools/index (#412)
Schmytzi Oct 8, 2024
98ec9a1
Updated Whatshap to 2.3 (#416)
Schmytzi Oct 8, 2024
7d187a6
Add found_in tag to SV-calling (#417)
fellen31 Oct 8, 2024
8c345f7
Template update for nf-core/tools v3.0.1 (#422)
fellen31 Oct 10, 2024
1263d72
Issue 348 (#419)
Schmytzi Oct 11, 2024
777cd7b
Annotate SVs (#408)
fellen31 Oct 14, 2024
1190ab9
Update metro map (#423)
fellen31 Oct 14, 2024
0b52f41
Added --no-RG argument to minimap2 (#427)
Schmytzi Oct 15, 2024
c736c8f
Replace bcftools with SVDB for SV merging (#428)
fellen31 Oct 16, 2024
d6f2627
Create build-docs.yml (#430)
fellen31 Oct 17, 2024
79b9674
Add additional mkdocs files (#431)
fellen31 Oct 17, 2024
c9192be
Fix and make docs pretty (#433)
fellen31 Oct 18, 2024
49fa8e7
Update SVDB and fix CALL_SVS tests (#434)
fellen31 Oct 22, 2024
2caa215
Implement nf-test for rank variants (#435)
fellen31 Oct 24, 2024
6a93afc
Update hifiasm to 0.20 (#440)
Schmytzi Oct 24, 2024
e76e6c2
Clean up pipeline tests (#438)
fellen31 Oct 25, 2024
79b836b
Run 8 parallel alignment processes by default (#418)
fellen31 Oct 25, 2024
ffcfb6e
Merge CNV and SV calls (#429)
fellen31 Oct 29, 2024
68823df
minimap2 preset for pacbio should be map-hifi (#441)
fellen31 Oct 30, 2024
e3098c6
Update genmod to fix models (#444)
fellen31 Oct 30, 2024
9000326
Add found_in tag to call repeat expansions (#445)
fellen31 Oct 30, 2024
558312d
Rank SVs (#450)
fellen31 Oct 30, 2024
d444307
Add deepvariant_vcfstatsreport (#446)
fellen31 Oct 30, 2024
0b2b81c
Refactor reference channels (#443)
fellen31 Oct 30, 2024
56d09dc
Fix reference channels (#474)
fellen31 Nov 1, 2024
ea1ec1e
Fix rank SVs (#479)
fellen31 Nov 1, 2024
ab0606e
Update metro map (#484)
fellen31 Nov 4, 2024
b5cb868
nf-test with changed-since (#487)
fellen31 Nov 5, 2024
9953afa
Run modkit once + general changes to methylation subworkflow (#451)
Schmytzi Nov 5, 2024
c47f69a
Fix rank SVs with multiple families (#480)
fellen31 Nov 5, 2024
c14669a
Template merge 3.0.2 (#489)
fellen31 Nov 6, 2024
73cca58
Update nf-core modules (#486)
fellen31 Nov 6, 2024
c656df7
Add keep a changelog enforcer (#491)
fellen31 Nov 6, 2024
d023a57
missing changelog items (#490)
fellen31 Nov 6, 2024
c88bafb
Annotate repeats per family (#485)
fellen31 Nov 7, 2024
42ec814
Remove nested ifs in nallo.nf (#493)
fellen31 Nov 11, 2024
cf8abb5
Fix CI not passing after merge (#498)
fellen31 Nov 15, 2024
b77eff4
Annotate and rank SNVs per family (#502)
fellen31 Nov 18, 2024
4817e1f
Rename input file parameters (#488)
fellen31 Nov 18, 2024
e9ff17c
Filter SNVs, INDELs, CNVs and SVs (#496)
fellen31 Nov 19, 2024
a36ad22
Update docs (#506)
fellen31 Nov 19, 2024
f172c0d
Set ch_hgnc_ids default value (#507)
fellen31 Nov 20, 2024
43c16ae
Update output.md (#509)
fellen31 Nov 20, 2024
07df8fe
Fix broken link in README.md (#513)
fellen31 Nov 22, 2024
1e5a25b
Change missed `single_sample` and `multi_sample` output directories (…
fellen31 Nov 22, 2024
aae65d7
Dynamically build methods description from ch_versions (#510)
fellen31 Nov 22, 2024
98b2f11
Prep release 0.4.0 (#511)
fellen31 Nov 22, 2024
1a3585e
Merge branch 'master' into dev
fellen31 Nov 22, 2024
4f6a66d
remove merge markers
fellen31 Nov 22, 2024
2fb6cac
prettier
fellen31 Nov 22, 2024
1b5e9d4
remove merge markers in changelog
fellen31 Nov 22, 2024
930f080
bump minimum master CI nextflow version to 24.04.2
fellen31 Nov 22, 2024
23480d9
fix tests merge mistakes and snapshot version bump
fellen31 Nov 22, 2024
21fece4
fix merge mistake, keeping main.nf.test
fellen31 Nov 22, 2024
67a5e15
Trgt 1.2.0 (#505)
Schmytzi Dec 10, 2024
50cb107
Update CHANGELOG because of reviewer comments
fellen31 Jan 7, 2025
e383a4a
Update conf/modules/annotate_svs.config
fellen31 Jan 8, 2025
034de30
Update conf/modules/genome_assembly.config
fellen31 Jan 8, 2025
7329b7b
Update conf/modules/genome_assembly.config
fellen31 Jan 8, 2025
809d058
Update conf/modules/rank_variants.config
fellen31 Jan 8, 2025
5061b09
Update conf/modules/rank_variants.config
fellen31 Jan 8, 2025
5af8631
Update conf/modules/rank_variants.config
fellen31 Jan 8, 2025
a8b1ed4
Update conf/modules/snv_annotation.config
fellen31 Jan 8, 2025
5405de5
Update conf/modules/snv_annotation.config
fellen31 Jan 8, 2025
d3c0dde
Update conf/modules/snv_annotation.config
fellen31 Jan 8, 2025
d7692f1
Update modules/local/add_found_in_tag/main.nf
fellen31 Jan 8, 2025
6f5f108
Update modules/local/add_found_in_tag/main.nf
fellen31 Jan 8, 2025
2c9b215
Update modules/local/add_found_in_tag/main.nf
fellen31 Jan 8, 2025
6cd933c
Update modules/local/add_found_in_tag/main.nf
fellen31 Jan 8, 2025
67cb026
Update modules/local/add_found_in_tag/main.nf
fellen31 Jan 8, 2025
e75da99
Update modules/local/add_found_in_tag/main.nf
fellen31 Jan 8, 2025
424d392
Update subworkflows/local/utils_nfcore_nallo_pipeline/main.nf
fellen31 Jan 8, 2025
03ca02d
Update CHANGELOG
fellen31 Jan 8, 2025
dfebad4
Update README with clearer descriptions
fellen31 Jan 8, 2025
079080f
Clarify comments and docs
fellen31 Jan 8, 2025
6c73e21
rename metas to sample_metas for more descriptive naming
fellen31 Jan 13, 2025
ec77943
Add `.collect()` to allow filtering more than one family per run. (#…
fellen31 Jan 13, 2025
7982d35
Trigger CI
fellen31 Jan 15, 2025
90ebda8
Update release date
fellen31 Jan 15, 2025
f99a3c7
Correct year
fellen31 Jan 15, 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
  •  
  •  
  •  
5 changes: 0 additions & 5 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,3 @@ indent_size = unset
# ignore python and markdown
[*.{py,md}]
indent_style = unset

# ignore parameters.md
[parameters.md]
trim_trailing_whitespace = false
indent_style = unset
19 changes: 10 additions & 9 deletions .github/CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ If you'd like to write some code for genomic-medicine-sweden/nallo, the standard
1. Check that there isn't already an issue about your idea in the [genomic-medicine-sweden/nallo issues](https://github.com/genomic-medicine-sweden/nallo/issues) to avoid duplicating work. If there isn't one already, please create one so that others know you're working on this
2. [Fork](https://help.github.com/en/github/getting-started-with-github/fork-a-repo) the [genomic-medicine-sweden/nallo repository](https://github.com/genomic-medicine-sweden/nallo) to your GitHub account
3. Make the necessary changes / additions within your forked repository following [Pipeline conventions](#pipeline-contribution-conventions)
4. Use `nf-core schema build` and add any new parameters to the pipeline JSON schema (requires [nf-core tools](https://github.com/nf-core/tools) >= 1.10).
4. Use `nf-core pipelines schema build` and add any new parameters to the pipeline JSON schema (requires [nf-core tools](https://github.com/nf-core/tools) >= 1.10).
5. Submit a Pull Request against the `dev` branch and wait for the code to be reviewed and merged

If you're not used to this workflow with git, you can start with some [docs from GitHub](https://help.github.com/en/github/collaborating-with-issues-and-pull-requests) or even their [excellent `git` resources](https://try.github.io/).
Expand All @@ -36,14 +36,14 @@ There are typically two types of tests that run:

### Lint tests

Altough this is not a `nf-core` pipeline, `nf-core` has a [set of guidelines](https://nf-co.re/developers/guidelines) which all their pipelines must adhere to.
To enforce these and ensure that all pipelines stay in sync, they have developed a helper tool which runs checks on the pipeline code. This is in the [nf-core/tools repository](https://github.com/nf-core/tools) and once installed can be run locally with the `nf-core lint <pipeline-directory>` command.
Although this is not a `nf-core` pipeline, `nf-core` has a [set of guidelines](https://nf-co.re/developers/guidelines) which all their pipelines must adhere to.
To enforce these and ensure that all pipelines stay in sync, they have developed a helper tool which runs checks on the pipeline code. This is in the [nf-core/tools repository](https://github.com/nf-core/tools) and once installed can be run locally with the `nf-core pipelines lint <pipeline-directory>` command.

If any failures or warnings are encountered, please follow the listed URL for more documentation.

### Pipeline tests

This pipeline should be set up with a minimal set of test-data.
This pipeline is set up with a minimal set of test-data.
`GitHub Actions` then runs the pipeline on this data to ensure that it exits successfully.
If there are any failures then the automated tests fail.
These tests are run both with the latest available version of `Nextflow` and also the minimum required version that is stated in the pipeline code.
Expand All @@ -68,22 +68,23 @@ If you wish to contribute a new step, please use the following coding standards:
2. Write the process block (see below).
3. Define the output channel if needed (see below).
4. Add any new parameters to `nextflow.config` with a default (see below).
5. Add any new parameters to `nextflow_schema.json` with help text (via the `nf-core schema build` tool).
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`.
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`.
10. Update the tool references `assets/software_references.yml`.
11. Add a description of the output files and if relevant any appropriate images from the MultiQC report to `docs/output.md`.

### Default values

Parameters should be initialised / defined with default values in `nextflow.config` under the `params` scope.

Once there, use `nf-core schema build` to add to `nextflow_schema.json`.
Once there, use `nf-core pipelines schema build` to add to `nextflow_schema.json`.

### Default processes resource requirements

Sensible defaults for process resource requirements (CPUs / memory / time) for a process should be defined in `conf/base.config`. These should generally be specified generic with `withLabel:` selectors so they can be shared across multiple processes/steps of the pipeline. A nf-core standard set of labels that should be followed where possible can be seen in the [nf-core pipeline template](https://github.com/nf-core/tools/blob/master/nf_core/pipeline-template/conf/base.config), which has the default process as a single core-process, and then different levels of multi-core configurations for increasingly large memory requirements defined with standardised labels.
Sensible defaults for process resource requirements (CPUs / memory / time) for a process should be defined in `conf/base.config`. These should generally be specified generic with `withLabel:` selectors so they can be shared across multiple processes/steps of the pipeline. A nf-core standard set of labels that should be followed where possible can be seen in the [nf-core pipeline template](https://github.com/nf-core/tools/blob/main/nf_core/pipeline-template/conf/base.config), which has the default process as a single core-process, and then different levels of multi-core configurations for increasingly large memory requirements defined with standardised labels.

The process resources can be passed on to the tool dynamically within the process with the `${task.cpus}` and `${task.memory}` variables in the `script:` block.

Expand All @@ -96,7 +97,7 @@ Please use the following naming schemes, to make it easy to understand what is g

### Nextflow version bumping

If you are using a new feature from core Nextflow, you may bump the minimum required version of nextflow in the pipeline with: `nf-core bump-version --nextflow . [min-nf-version]`
If you are using a new feature from core Nextflow, you may bump the minimum required version of nextflow in the pipeline with: `nf-core pipelines bump-version --nextflow . [min-nf-version]`

### Images and figures

Expand Down
32 changes: 10 additions & 22 deletions .github/ISSUE_TEMPLATE/bug_report.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,46 +9,34 @@ body:
description: A clear and concise description of what the bug is.
validations:
required: true

- type: textarea
id: command_used
attributes:
label: Command used and terminal output
description: Steps to reproduce the behaviour. Please paste the command you used
to launch the pipeline and the output from your terminal.
description: Steps to reproduce the behaviour. Please paste the command you used to launch the pipeline and the output from your terminal.
render: console
placeholder: "$ nextflow run ...

placeholder: |
$ nextflow run ...

Some output where something broke

"
- type: textarea
id: files
attributes:
label: Relevant files
description: "Please drag and drop the relevant files here. Create a `.zip` archive
if the extension is not allowed.

Your verbose log file `.nextflow.log` is often useful _(this is a hidden file
in the directory where you launched the pipeline)_ as well as custom Nextflow
configuration files.
description: |
Please drag and drop the relevant files here. Create a `.zip` archive if the extension is not allowed.
Your verbose log file `.nextflow.log` is often useful _(this is a hidden file in the directory where you launched the pipeline)_ as well as custom Nextflow configuration files.

"
- type: textarea
id: system
attributes:
label: System information
description: "* Nextflow version _(eg. 23.04.0)_

description: |
* Nextflow version _(eg. 23.04.0)_
* Hardware _(eg. HPC, Desktop, Cloud)_

* Executor _(eg. slurm, local, awsbatch)_

* Container engine: _(e.g. Docker, Singularity, Conda, Podman, Shifter, Charliecloud,
or Apptainer)_

* Container engine: _(e.g. Docker, Singularity, Conda, Podman, Shifter, Charliecloud, or Apptainer)_
* OS _(eg. CentOS Linux, macOS, Linux Mint)_

* Version of genomic-medicine-sweden/nallo _(eg. 1.1, 1.5, 1.8.2)_

"
2 changes: 1 addition & 1 deletion .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Learn more about contributing: [CONTRIBUTING.md](https://github.com/genomic-medi
- [ ] 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/genomic-medicine-sweden/nallo/tree/master/.github/CONTRIBUTING.md)
- [ ] Make sure your code lints (`nf-core lint`).
- [ ] Make sure your code lints (`nf-core pipelines lint`).
- [ ] Ensure the test suite passes (`nextflow run . -profile test,docker --outdir <OUTDIR>`).
- [ ] Check for unexpected warnings in debug mode (`nextflow run . -profile debug,test,docker --outdir <OUTDIR>`).
- [ ] Usage Documentation in `docs/usage.md` is updated.
Expand Down
43 changes: 43 additions & 0 deletions .github/workflows/build-docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: build docs
# https://github.com/nf-cmgg/structural/blob/master/.github/workflows/build-docs.yml
on:
push:
branches:
- master
- main
- dev
permissions:
contents: write
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0 # fetch all commits/branches
- uses: actions/setup-python@v4
with:
python-version: 3.x
- run: echo "cache_id=$(date --utc '+%V')" >> $GITHUB_ENV
- name: Obtain version from nextflow config
run: |
version=$(grep "version" nextflow.config | tail -1 | sed -e s'/[^=]*= //' | cut -d "'" -f 2)
[[ $version == *"dev"* ]] && pipeline_version="dev" || pipeline_version=$version
echo "pipeline_version=$pipeline_version" >> $GITHUB_ENV
- name: Setup git user
run: |
git config --global user.name "${{github.actor}}"
git config --global user.email "${{github.actor}}@users.noreply.github.com"
- uses: actions/cache@v3
with:
key: mkdocs-material-${{ env.cache_id }}
path: .cache
restore-keys: |
mkdocs-material-
- name: Install dependencies
run: pip install mkdocs-material pymdown-extensions pillow cairosvg mike
- name: Build docs
run: |
[[ ${{ env.pipeline_version }} == "dev" ]] && mike deploy --push ${{ env.pipeline_version }} || mike deploy --push --update-aliases ${{ env.pipeline_version }} latest
- name: Set default docs
run: mike set-default --push latest
85 changes: 28 additions & 57 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,13 @@ on:
pull_request:
release:
types: [published]
workflow_dispatch:

env:
NXF_ANSI_LOG: false
NXF_SINGULARITY_CACHEDIR: ${{ github.workspace }}/.singularity
NXF_SINGULARITY_LIBRARYDIR: ${{ github.workspace }}/.singularity
NFTEST_VER: "0.9.2"

concurrency:
group: "${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}"
Expand All @@ -20,88 +24,55 @@ permissions:

jobs:
test:
name: Run pipeline with test data
# Only run on push if this is the nf-core dev branch (merged PRs)
if: "${{ github.event_name != 'push' || (github.event_name == 'push' && github.repository == 'genomic-medicine-sweden/nallo') }}"
runs-on: ubuntu-latest
strategy:
matrix:
parameters:
- ""
- "--preset ONT_R10 --input https://github.com/genomic-medicine-sweden/test-datasets/raw/e2266a34c14d1e0a9ef798de3cd81a76c9216fc1/testdata/samplesheet_multisample_bam_ont.csv --parallel_alignments 2 --parallel_snv 1"
NXF_VER:
- "23.04.0"
- "latest-everything"
steps:
- name: Check out pipeline code
uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4

- name: Install Nextflow
uses: nf-core/setup-nextflow@v2
with:
version: "${{ matrix.NXF_VER }}"

- name: Disk space cleanup
uses: jlumbroso/free-disk-space@54081f138730dfa15788a46383842cd2f914a1be # v1.3.1

- name: Run pipeline with test data
run: |
nextflow run ${GITHUB_WORKSPACE} -profile test,docker --outdir ./results ${{ matrix.parameters }}
nftest:
name: ${{ matrix.tags }} ${{ matrix.profile }} NF-${{ matrix.NXF_VER }}
name: ${{ matrix.tags }} | ${{ matrix.profile }} | NF-${{ matrix.NXF_VER }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
NXF_VER:
- "24.04.2"
- "latest-everything"
- "23.04.0"
tags:
- "SHORT_VARIANT_CALLING"
- "SNV_ANNOTATION"
- "samplesheet"
- "samplesheet_multisample_bam"
- "samplesheet_multisample_ont_bam"
- "SHORT_VARIANT_CALLING"
- "SNV_ANNOTATION"
- "CALL_SVS"
- "ANNOTATE_SVS"
- "RANK_VARIANTS"
- "CALL_REPEAT_EXPANSIONS"
- "METHYLATION"
profile:
- "docker"

steps:
- name: Check out pipeline code
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
with:
fetch-depth: 0

- name: Install Nextflow
uses: nf-core/setup-nextflow@b9f764e8ba5c76b712ace14ecbfcef0e40ae2dd8 # v1
- name: Set up Nextflow
uses: nf-core/setup-nextflow@v2
with:
version: "${{ matrix.NXF_VER }}"

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

- uses: actions/setup-python@v4
with:
python-version: "3.11"
architecture: "x64"

- name: Install pdiff to see diff between nf-test snapshots
run: |
python -m pip install --upgrade pip
pip install pdiff

- name: Run nf-test
run: |
nf-test test --verbose --tag ${{ matrix.tags }} --profile "+${{ matrix.profile }}" --junitxml=test.xml --tap=test.tap

- uses: pcolby/tap-summary@v1
with:
path: >-
test.tap

- name: Output log on failure
if: failure()
run: |
sudo apt install bat > /dev/null
batcat --decorations=always --color=always ${{ github.workspace }}/.nf-test/tests/*/meta/nextflow.log

- name: Publish Test Report
uses: mikepenz/action-junit-report@v3
if: always() # always run even if the previous step fails
with:
report_paths: test.xml
nf-test test \
--ci \
--changed-since HEAD^ \
--verbose \
--tag ${{ matrix.tags }} \
--profile "+${{ matrix.profile }}" \
--junitxml=test.xml
2 changes: 1 addition & 1 deletion .github/workflows/ci_master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:
parameters:
- "--bed=`null`"
NXF_VER:
- "23.04.0"
- "24.04.2"
- "latest-everything"
steps:
- name: Check out pipeline code
Expand Down
Loading
Loading