Skip to content

Commit accc706

Browse files
committed
fix key error
1 parent a65a0bf commit accc706

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

nf_core/pipelines/bump_version.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ def bump_nextflow_version(pipeline_obj: Pipeline, new_version: str) -> None:
175175
new_version,
176176
)
177177
],
178-
yaml_key=["jobs", "test", "strategy", "matrix", "NXF_VER"],
178+
yaml_key=["jobs", "nf-test", "strategy", "matrix", "NXF_VER"],
179179
)
180180

181181
# README.md - Nextflow version badge

tests/pipelines/lint/test_actions_nf_test.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ def test_actions_nf_test_fail_wrong_trigger(self):
3737
with open(Path(new_pipeline, ".github", "workflows", "nf-test.yml")) as fh:
3838
ci_yml = yaml.safe_load(fh)
3939
ci_yml[True].pop("pull_request")
40-
ci_yml["jobs"]["test"]["strategy"]["matrix"] = {"nxf_versionnn": ["foo", ""]}
40+
ci_yml["jobs"]["nf-test"]["strategy"]["matrix"] = {"nxf_versionnn": ["foo", ""]}
4141
with open(Path(new_pipeline, ".github", "workflows", "nf-test.yml"), "w") as fh:
4242
yaml.dump(ci_yml, fh)
4343

tests/pipelines/test_bump_version.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ def test_bump_nextflow_version(self):
5757
# Check .github/workflows/nf-test.yml
5858
with open(new_pipeline_obj._fp(".github/workflows/nf-test.yml")) as fh:
5959
ci_yaml = yaml.safe_load(fh)
60-
assert ci_yaml["jobs"]["test"]["strategy"]["matrix"]["NXF_VER"][0] == version
60+
assert ci_yaml["jobs"]["nf-test"]["strategy"]["matrix"]["NXF_VER"][0] == version
6161

6262
# Check README.md
6363
with open(new_pipeline_obj._fp("README.md")) as fh:

0 commit comments

Comments
 (0)