Skip to content

Commit bc3239f

Browse files
convert to decimals to floats
1 parent 32eece2 commit bc3239f

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

coverage_comment/main.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -269,8 +269,10 @@ def process_pr(
269269
)
270270

271271
outputs = {
272-
"COVERAGE_PERCENTAGE": coverage.info.percent_covered,
273-
"REFERENCE_COVERAGE_PERCENTAGE": previous_coverage_rate,
272+
"COVERAGE_PERCENTAGE": float(coverage.info.percent_covered),
273+
"REFERENCE_COVERAGE_PERCENTAGE": float(previous_coverage_rate)
274+
if previous_coverage_rate is not None
275+
else None,
274276
}
275277

276278
try:

0 commit comments

Comments
 (0)