Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ runs:
pycobertura show ${{ inputs.diff-storage }}/data/${{ inputs.diff-branch }}/${{ inputs.storage-subdirectory }}/coverage.xml --output .coverage-output.diff-branch
# Extract the total coverage percentage
grep -E "^TOTAL " .coverage-output.diff-branch | \
awk '{printf "%.8f", (1 - $3/$2) * 100}' | tr -d '%' > .coverage-total.diff-branch
awk '{printf "%.8f", (1 - $3/$2) * 100}' > .coverage-total.diff-branch
echo "Diff-branch coverage: $(cat .coverage-total.diff-branch)%"
} else {
echo "Diff-branch coverage file not found, cannot compare coverage rates."
Expand All @@ -234,7 +234,7 @@ runs:
- name: Get total
run: |
grep -E "^TOTAL " .coverage-output | \
awk '{print $NF}' | tr -d '%' > .coverage-total
awk '{printf "%.8f", (1 - $3/$2) * 100}' > .coverage-total
shell: bash

- name: Store coverage percent
Expand Down