From 87edd859fb1e77f745d1f0a4ce0392eaca62969b Mon Sep 17 00:00:00 2001 From: Jerboa-app Date: Sat, 27 Apr 2024 07:01:59 +0100 Subject: [PATCH] fix python --- .github/workflows/report.py | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/.github/workflows/report.py b/.github/workflows/report.py index 27a0da8..e06b41a 100644 --- a/.github/workflows/report.py +++ b/.github/workflows/report.py @@ -53,14 +53,15 @@ if args.human: - if diff > 0: - header = f"Looks like you increased coverage by {diff} %, fantastic!" - elif diff < 0: - header = f"Seems the coverage is below {main} by {diff} %, please consider adding to the tests, thanks!" - elif diff == 0: - header = f"Great, coverage is exactly the same as {main}!" - else: - header = "" + header = "" + if diff is not None: + if diff > 0: + header = f"Looks like you increased coverage by {diff} %, fantastic!" + elif diff < 0: + header = f"Seems the coverage is below {args.main} by {diff} %, please consider adding to the tests, thanks!" + elif diff == 0: + header = f"Great, coverage is exactly the same as {args.main}!" + header += "\nHere is the full report breakdown\n\n" else: header = ""