actions_nf_test

PipelineLint.actions_nf_test()

Checks that the GitHub Actions pipeline nf-test workflow is valid.

The .github/workflows/nf-test.yml GitHub Actions workflow runs the pipeline on a minimal test dataset using nf-test to check that no breaking changes have been introduced.

This lint test checks this GitHub Actions workflow file for the following:

  • Workflow must be triggered on the following events:

    on:
      pull_request:
      release:
        types: [published]
  • The minimum Nextflow version specified in the pipeline’s nextflow.config matches that defined by NXF_VER in the test matrix:

    strategy:
      matrix:
        # Nextflow versions: check pipeline minimum and current latest
        NXF_VER: ["19.10.0", ""]
    Note

    These matrix variables run the test workflow twice, varying the NXF_VER variable each time. This is used in the nf-test commands to test the pipeline with both the latest available version of the pipeline ('') and the stated minimum required version.