From 029a9031826e29a9d5fc553087a5af81fcbbdd1d Mon Sep 17 00:00:00 2001 From: Mitya Selivanov <0x7fffff@guattari.ru> Date: Sun, 21 Aug 2022 15:38:32 +0400 Subject: test --- .github/workflows/build_and_test.yml | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to '.github') diff --git a/.github/workflows/build_and_test.yml b/.github/workflows/build_and_test.yml index 88cbccb..1e5fb79 100644 --- a/.github/workflows/build_and_test.yml +++ b/.github/workflows/build_and_test.yml @@ -43,18 +43,22 @@ jobs: cmake -B build -S . cmake --build build --config $BUILD_TYPE - - name: Run tests & generate coverage on Linux - if: runner.os == 'Linux' + - name: Run tests + if: runner.os != 'Windows' working-directory: ${{ github.workspace }}/build run: | ctest -V -C $BUILD_TYPE + + - name: Generate coverage on Linux + if: runner.os == 'Linux' + working-directory: ${{ github.workspace }}/build + run: | gcovr -j $(nproc) --delete --root ../source/ --exclude '\.\./source/test/' --print-summary --xml-pretty --xml coverage.xml . - - name: Run tests & generate coverage on macOS + - name: Generate coverage on macOS if: runner.os == 'macOS' working-directory: ${{ github.workspace }}/build run: | - ctest -V -C $BUILD_TYPE gcovr -j 2 --delete --root ../source/ --exclude '\.\./source/test/' --print-summary --xml-pretty --xml coverage.xml . - name: Run tests & generate coverage on Windows -- cgit v1.2.3