Skip to content

Commit

Permalink
Use in-source-tree builds for tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
LTLA committed Jul 21, 2021
1 parent aec013d commit ad6b1da
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions .github/workflows/run-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,27 +33,24 @@ jobs:

- name: Configure the build
if: ${{ matrix.config.cov == false }}
run: cmake -S . -B build
run: cmake -S .

# This needs to be done in-tree for the GCNO files to go to the right place.
- name: Configure the build with coverage
if: ${{ matrix.config.cov == true }}
run: cmake -S . -DCODE_COVERAGE=ON

- name: Run the build
run: cmake --build build
- name: Build the tests
run: cmake --build .

- name: Run the tests
run: |
cd build
ctest
run: ctest

- name: Generate code coverage
if: ${{ matrix.config.cov == true }}
run: gcov tests/src/*.cpp

- name: Upload to Codecov
if: ${{ matrix.config.cov == true }}
uses: codecov/codecov-action@v1
with:
directory: tests/src

0 comments on commit ad6b1da

Please sign in to comment.