Skip to content

Commit

Permalink
bump version of nf-test snap files
Browse files Browse the repository at this point in the history
  • Loading branch information
mirpedrol committed Aug 30, 2023
1 parent 6e3080b commit b4a1bf6
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions nf_core/bump_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit b4a1bf6

Please sign in to comment.