From 2a76c5b95822ee3efcff813c96aa495f93c1a599 Mon Sep 17 00:00:00 2001 From: Luigi Ballabio Date: Sat, 25 Apr 2020 14:06:40 +0200 Subject: [PATCH] Include examples in coverage. --- .github/workflows/coveralls.yml | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/.github/workflows/coveralls.yml b/.github/workflows/coveralls.yml index 698a6aa635a..7c56690d006 100644 --- a/.github/workflows/coveralls.yml +++ b/.github/workflows/coveralls.yml @@ -1,8 +1,5 @@ name: Coverage report -on: - push: - branches: - - master +on: push jobs: coverage: runs-on: ubuntu-latest @@ -14,15 +11,16 @@ jobs: pip install --user wheel pip install --user cpp-coveralls - name: Compile - env: - CXXFLAGS: -O1 -fprofile-arcs -ftest-coverage - LDFLAGS: -lgcov run: | - cmake -DBOOST_ROOT=/usr . + ./autogen.sh + ./configure --disable-shared CXXFLAGS='-O1 -fprofile-arcs -ftest-coverage' LDFLAGS='-lgcov' make -j 2 - - name: Test + - name: Run tests run: | ./test-suite/quantlib-test-suite --log_level=message + - name: Run examples + run: | + make -C Examples check-examples - name: Upload coverage to Coveralls env: COVERALLS_REPO_TOKEN: ${{ secrets.COVERALL_TOKEN }}