From c389a20a2c8bed4a304dfc1e0b3e4b37020dfe06 Mon Sep 17 00:00:00 2001 From: Tomoya Tanjo Date: Fri, 17 Jan 2020 17:28:01 +0900 Subject: [PATCH] Generate yellow badges for the results of non-required tests --- cwltest/__init__.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cwltest/__init__.py b/cwltest/__init__.py index 357883c..2a6ab97 100755 --- a/cwltest/__init__.py +++ b/cwltest/__init__.py @@ -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(