Skip to content

Commit 66efe79

Browse files
authored
Merge pull request #102 from common-workflow-language/yellow-for-optionals
Generate yellow badges for the results of non-required tests
2 parents a6be9f7 + c389a20 commit 66efe79

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

cwltest/__init__.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -475,8 +475,10 @@ def main(): # type: () -> int
475475
percent = int((npassed[t] / float(v)) * 100)
476476
if npassed[t] == v:
477477
color = "green"
478-
else:
478+
elif t == "required":
479479
color = "red"
480+
else:
481+
color = "yellow"
480482

481483
with open("{}/{}.json".format(args.badgedir, t), "w") as out:
482484
out.write(

0 commit comments

Comments
 (0)