Skip to content

Commit fad921c

Browse files
committed
pathogens: Report compatible workflows as separate setup checks
Helpful to ensure that their directories exist as expected to catch registration vs. reality mismatches.
1 parent 207868b commit fad921c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

nextstrain/cli/pathogens.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -516,7 +516,7 @@ def test_compatibility() -> SetupTestResult:
516516
if not (compatible_workflows := self.compatible_workflows("nextstrain run")):
517517
return msg + "\n(no workflows registered as compatible)", False
518518

519-
return msg + f"\nCompatible workflows: {list(compatible_workflows.keys())}", True
519+
return msg, True
520520

521521
return [
522522
('downloaded',
@@ -526,6 +526,9 @@ def test_compatibility() -> SetupTestResult:
526526
self.registration_path.is_file()),
527527

528528
test_compatibility(),
529+
530+
*((f'`nextstrain run` workflow {name!r} exists', self.workflow_path(name).is_dir())
531+
for name in self.compatible_workflows("nextstrain run")),
529532
]
530533

531534

0 commit comments

Comments
 (0)