Skip to content

Commit

Permalink
fix python
Browse files Browse the repository at this point in the history
  • Loading branch information
Jerboa-app committed Apr 27, 2024
1 parent 9bb82bb commit 87edd85
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions .github/workflows/report.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = ""
Expand Down

0 comments on commit 87edd85

Please sign in to comment.