-
Notifications
You must be signed in to change notification settings - Fork 195
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bump_version
: don't require pipeline version in nf-test snapshots
#3477
base: dev
Are you sure you want to change the base?
Conversation
bump_version
: don't require pipeline version in nf-test snapshots
@nf-core-bot changelog |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
.
@@ -101,7 +101,7 @@ def bump_pipeline_version(pipeline_obj: Pipeline, new_version: str) -> None: | |||
) | |||
# 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")] | |||
snap_files = [f for f in Path(pipeline_obj.wf_path).glob("tests/pipeline/*.snap")] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the workflow path is not needed, we use relative paths for all other paths in update_file_version
, so we should modify the file paths resulting from this glob
@@ -288,7 +289,7 @@ def update_text_file(fn: Path, patterns: List[Tuple[str, str]], required: bool): | |||
updated = True | |||
log.info(f"Updated version in '{fn}'") | |||
log.debug(f"Replaced pattern '{pattern}' with '{replacement}' {count} times") | |||
elif required: | |||
else: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
won't this show the error when the version is not found? even if required is false
No description provided.