Skip to content

Commit c389a20

Browse files
committed
Generate yellow badges for the results of non-required tests
1 parent a6be9f7 commit c389a20

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)