Skip to content

Commit

Permalink
Merge pull request #2410 from mirpedrol/bump-version-snap
Browse files Browse the repository at this point in the history
bump version of nf-test snap files
  • Loading branch information
mirpedrol authored Aug 30, 2023
2 parents 6e3080b + 5824dd0 commit ba395fe
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
- Update the Code of Conduct ([#2381](https://github.com/nf-core/tools/pull/2381))
- Remove `--no-git` option from `nf-core create` ([#2394](https://github.com/nf-core/tools/pull/2394))
- Throw warning when custom workflow name contains special characters ([#2401](https://github.com/nf-core/tools/pull/2401))
- Bump version of nf-test snapshot files with `nf-core bump-version` ([#2410](https://github.com/nf-core/tools/pull/2410))

# [v2.9 - Chromium Falcon](https://github.com/nf-core/tools/releases/tag/2.9) + [2023-06-29]

Expand Down
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 ba395fe

Please sign in to comment.