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

Migrating basicpy to nf-test #6929

Closed
wants to merge 4 commits into from
Closed

Conversation

kbestak
Copy link
Contributor

@kbestak kbestak commented Nov 4, 2024

Migrated testing of BasicPy to nf-test instead of pytest.

PR checklist

Closes #6927

  • 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 module conventions in the contribution docs
  • If necessary, include test data in your PR.
  • Remove all TODO statements.
  • Emit the versions.yml file.
  • Follow the naming conventions.
  • Follow the parameters requirements.
  • Follow the input/output options guidelines.
  • Add a resource label
  • Use BioConda and BioContainers if possible to fulfil software requirements. --> not possible, conda not supported
  • Ensure that the test works with either Docker / Singularity. Conda CI tests can be quite flaky:
    • For modules:
      • nf-core modules test <MODULE> --profile docker
      • nf-core modules test <MODULE> --profile singularity
      • nf-core modules test <MODULE> --profile conda
    • For subworkflows:
      • nf-core subworkflows test <SUBWORKFLOW> --profile docker
      • nf-core subworkflows test <SUBWORKFLOW> --profile singularity
      • nf-core subworkflows test <SUBWORKFLOW> --profile conda

@kbestak kbestak requested a review from a team as a code owner November 4, 2024 13:14
@SPPearce
Copy link
Contributor

SPPearce commented Nov 5, 2024

The tests are failing because the md5sums are not consistent, do they just need updating or do the files contain a datestamp or something?

@@ -36,13 +36,17 @@ process BASICPY {
if (workflow.profile.tokenize(',').intersect(['conda', 'mamba']).size() >= 1) {
error "Basicpy module does not support Conda. Please use Docker / Singularity instead."
}
def args = task.ext.args ?: ''
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
def args = task.ext.args ?: ''

Copy link
Contributor

Choose a reason for hiding this comment

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

Can delete this file.

@SPPearce
Copy link
Contributor

@kbestak , are you able to continue here?

@kbestak kbestak mentioned this pull request Dec 16, 2024
14 tasks
@kbestak
Copy link
Contributor Author

kbestak commented Dec 16, 2024

Hi @SPPearce , I've opened a new PR now because I decided it would be easier than resolving conflicts: #7228

@kbestak kbestak closed this Dec 16, 2024
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.

nf-test for Basicpy
2 participants