version_consistency
- PipelineLint.version_consistency()
Pipeline and container version number consistency.
Note
This test only runs when the
--releaseflag is set fornf-core lint, or$GITHUB_REFis equal tomaster.This lint fetches the pipeline version number from three possible locations:
The pipeline config,
manifest.versionThe docker container in the pipeline config,
process.containerSome pipelines may not have this set on a pipeline level. If it is not found, it is ignored.
$GITHUB_REF, if it looks like a release tag (refs/tags/<something>)
The test then checks that:
The container name has a tag specified (eg.
nfcore/pipeline:version)The pipeline version number is numeric (contains only numbers and dots)
That the version numbers all match one another