diff --git a/nf_core/bump_version.py b/nf_core/bump_version.py index 5f4616edfb..ada7f0b994 100644 --- a/nf_core/bump_version.py +++ b/nf_core/bump_version.py @@ -60,6 +60,20 @@ def bump_pipeline_version(pipeline_obj, new_version): ), ], ) + # nf-test snap files + pipeline_name = pipeline_obj.nf_config.get("manifest.name", "").strip(" '\"") + snap_files = [f for f in Path().glob("tests/pipeline/*.snap")] + for snap_file in snap_files: + update_file_version( + snap_file, + pipeline_obj, + [ + ( + f"{pipeline_name}={current_version}", + f"{pipeline_name}={new_version}", + ) + ], + ) def bump_nextflow_version(pipeline_obj, new_version):