Skip to content

Commit fd4ebe9

Browse files
committed
Update coverage status
1 parent e13276f commit fd4ebe9

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed

.github/workflows/test.yml

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -93,12 +93,13 @@ jobs:
9393
-include stdio.h"
9494
rm test.c
9595
96-
# # test configurations
97-
# # normal+reentrant tests
98-
# - name: test-default
99-
# run: |
100-
# make clean
101-
# make test TESTFLAGS+="-nrk"
96+
# test configurations
97+
# normal+reentrant tests
98+
- name: test-default
99+
run: |
100+
make clean
101+
#make test TESTFLAGS+="-nrk"
102+
make test_dirs TESTFLAGS+="-nk"
102103
# TODO for testing
103104
# # NOR flash: read/prog = 1 block = 4KiB
104105
# - name: test-nor
@@ -450,11 +451,11 @@ jobs:
450451
"$GITHUB_API_URL/repos/$GITHUB_REPOSITORY/status/master" \
451452
| jq -re 'select(.sha != env.GITHUB_SHA) | .statuses[]
452453
| select(.context == env.CONTEXT).description
453-
| capture("Coverage is (?<result>[0-9\\.]+)").result' \
454+
| capture("(?<result>[0-9\\.]+)").result' \
454455
|| echo 0)"
455456
export DESCRIPTION="$(
456-
./scripts/coverage.py -u results/coverage.csv --summary | awk -F '[ /%]+' '
457-
NR==2 {printf "Coverage is %.1f%% of %d lines",$4,$3}
457+
./scripts/coverage.py -u results/coverage.csv -Y | awk -F '[ /%]+' '
458+
NR==2 {printf "%.1f%% of %d lines",$4,$3}
458459
NR==2 && ENVIRON["PREV"]+0 != 0 {
459460
printf " (%+.1f%%)",$4-ENVIRON["PREV"]}')"
460461
jq -n '{

0 commit comments

Comments
 (0)