Skip to content

Commit

Permalink
ci(python): fix python-test-with-coverage xq usage
Browse files Browse the repository at this point in the history
  • Loading branch information
vpayno committed Apr 4, 2024
1 parent 9f26134 commit c75de44
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/citools/python/python-test-with-coverage
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,11 @@ main() {
print_ruler

local coverage_line
coverage_line="$(xq -q coverage -a line-rate .coverage.xml)"
coverage_line="$(xq -r '.coverage["@line-rate"]' .coverage.xml)"
printf "Line Coverage: %.1f%%\n" "$(bc <<<"scale=1; ${coverage_line}* 100")"

local coverage_branch
coverage_branch="$(xq -q coverage -a line-rate .coverage.xml)"
coverage_branch="$(xq -r '.coverage["@branch-rate"]' .coverage.xml)"
printf "Branch Coverage: %.1f%%\n" "$(bc <<<"scale=1; ${coverage_branch}* 100")"

print_ruler
Expand Down

0 comments on commit c75de44

Please sign in to comment.