Skip to content

Commit 8e98a95

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 8b24a80 commit 8e98a95

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

nextstrain/cli/pathogens.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -496,10 +496,10 @@ def test_compatibility() -> SetupTestResult:
496496
if not self.registered_workflows():
497497
return msg + "\n(no workflows registered)", False
498498

499-
if not (compatible_workflows := self.compatible_workflows("nextstrain run")):
499+
if not self.compatible_workflows("nextstrain run"):
500500
return msg + "\n(no workflows registered as compatible)", False
501501

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

504504
return [
505505
('downloaded',
@@ -509,6 +509,9 @@ def test_compatibility() -> SetupTestResult:
509509
self.registration_path.is_file()),
510510

511511
test_compatibility(),
512+
513+
*((f'`nextstrain run` workflow {name!r} exists', self.workflow_path(name).is_dir())
514+
for name in self.compatible_workflows("nextstrain run")),
512515
]
513516

514517

0 commit comments

Comments
 (0)