From 8979a895371004c3f7dca1b7e9c25709877fc432 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=A9mie=20Astor?= Date: Sun, 16 Feb 2020 17:22:22 +0100 Subject: [PATCH] :wrench: install gcovr via apt --- .github/workflows/coverage.yml | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index 7b05fcd5..8f6e272c 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -13,13 +13,16 @@ jobs: steps: - uses: actions/checkout@v1 + - name: submodules run: git submodule update --init util ast + - name: make env: CFLAGS: -ftest-coverage -fprofile-arcs LDFLAGS: -ftest-coverage -fprofile-arcs run: make + - name: Tests env: VALGRIND: NO_VALGRIND @@ -27,11 +30,13 @@ jobs: SEVERITY: 3 run: export GWION_TEST_DIR=${{ runner.tmp }}/tmp/test; mkdir $GWION_TEST_DIR && make test - - name: Report + - name: Install gcovr + run: | + sudo apt-get update + sudo apt-get install gcovr + + - name: Report run: | - pip install gcovr - pip list -v - pip show gcovr COV_TXT=$(gcovr --html-details cov.html -s | grep lines | cut -d" " -f2) COV_NUM=${COV_TXT: : -1} echo $COV_NUM -- 2.43.0