Skip to content

Commit

Permalink
Merge pull request #102 from common-workflow-language/yellow-for-opti…
Browse files Browse the repository at this point in the history
…onals

Generate yellow badges for the results of non-required tests
  • Loading branch information
mr-c authored Jan 17, 2020
2 parents a6be9f7 + c389a20 commit 66efe79
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cwltest/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -475,8 +475,10 @@ def main(): # type: () -> int
percent = int((npassed[t] / float(v)) * 100)
if npassed[t] == v:
color = "green"
else:
elif t == "required":
color = "red"
else:
color = "yellow"

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

0 comments on commit 66efe79

Please sign in to comment.