Skip to content

Update to match the current nf-core/modules repo#5

Merged
muffato merged 41 commits intomainfrom
nfcore_update
Jan 12, 2026
Merged

Update to match the current nf-core/modules repo#5
muffato merged 41 commits intomainfrom
nfcore_update

Conversation

@muffato
Copy link
Copy Markdown
Member

@muffato muffato commented Oct 2, 2025

Here I've imported all files from the latest nf-core/modules repository.
In particular, it introduces a much better nf-test support, including sharding the test runs.

I also fixed a couple of variables in the copier template and changed the instructions to address #2

@muffato muffato marked this pull request as ready for review October 15, 2025 16:39
@muffato muffato requested a review from Copilot October 17, 2025 17:44
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR updates the nf-core/modules-template to match the current nf-core/modules repository structure. The update introduces improved nf-test support with test run sharding, updates GitHub Actions workflows for better CI/CD, and addresses template variables and instructions as mentioned in issue #2.

  • Introduced comprehensive nf-test configuration with sharding support for parallel test execution
  • Updated GitHub Actions workflows to separate linting and testing responsibilities
  • Added new schema validation files for modules and subworkflows

Reviewed Changes

Copilot reviewed 33 out of 33 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
tests/demo-answers.yml Updated copyright field name from year to date
nf-modules-template/tests/config/nextflow.config Increased memory allocation for test processes
nf-modules-template/nf-test.config Updated plugin versions and added nft-utils plugin
nf-modules-template/.github/workflows/ Replaced single test workflow with separate lint and nf-test workflows
nf-modules-template/.github/actions/ Added reusable GitHub Actions for test sharding and execution
nf-modules-template/modules/meta-schema.json Enhanced schema validation for module metadata
nf-modules-template/README.md.jinja Added comprehensive documentation for sub-workflows and cross-organization modules
copier.yml Fixed template variable naming and updated defaults

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Comment thread nf-modules-template/modules/yaml-schema.json
@muffato
Copy link
Copy Markdown
Member Author

muffato commented Oct 17, 2025

(just tried a Copilot review for fun. Not very useful...)

Copy link
Copy Markdown
Contributor

@mashehu mashehu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Didn't go through everything yet, but need to stop for now.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

how does this filename work? Shouldn't the if clause be starting at .github/?

Copy link
Copy Markdown
Member Author

@muffato muffato Oct 20, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's how it was set up before me 🤷🏼‍♂️
I can just say that it's creating .github/workflows/lint.yml just fine.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I understand this a bit better. The Jinja variable controls the CI only ("What CI provider will you use for testing?"). There are other files in .github/ like CONTRIBUTING.md that are useful even if the CI isn't turned on.
But for these, I made a conditional directory using the repo_host variable

Comment thread nf-modules-template/.pre-commit-config.yaml.jinja
@muffato
Copy link
Copy Markdown
Member Author

muffato commented Jan 10, 2026

I pushed a bunch of commits to match the latest nf-core/modules

@muffato muffato self-assigned this Jan 12, 2026
@muffato muffato mentioned this pull request Jan 12, 2026
tests/data/
work/
.github/CODEOWNERS-tmp
modules/nf-core
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is this to avoid checking in nf-core modules in a different repo?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

gitpod is more or less deprecated, so not sure you still need this file.

Copy link
Copy Markdown
Member Author

@muffato muffato Jan 12, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I know it's deprecated, but it's still in the nf-core/modules repo. I did a wholesale copy (+ templating) without apply too much judgment on what is needed, valid, etc. I didn't want to implicitly review nf-core/modules through this.

Comment thread nf-modules-template/README.md.jinja Outdated
Comment thread tests/demo-answers.yml Outdated
muffato and others added 3 commits January 12, 2026 16:08
@muffato muffato merged commit 7f22b6e into main Jan 12, 2026
@muffato muffato deleted the nfcore_update branch January 12, 2026 17:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants