Skip to content

Commit

Permalink
Merge pull request #83 from Jacyking/master
Browse files Browse the repository at this point in the history
fix cov ci
  • Loading branch information
qicosmos committed Mar 17, 2023
2 parents 44a89d3 + ac74b1f commit 8292d26
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,4 +50,4 @@ jobs:
working-directory: ${{github.workspace}}/build
env:
CTEST_OUTPUT_ON_FAILURE: 1
run: ctest -C ${{ matrix.configuration }}
run: ctest -C ${{ matrix.configuration }} -j `nproc` -V
8 changes: 3 additions & 5 deletions .github/workflows/code-coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
runs-on: ubuntu-latest

steps:
- name: Checkout code
- name: Checkout Code
uses: actions/checkout@v2
with:
fetch-depth: 2
Expand All @@ -23,7 +23,7 @@ jobs:
run: mysql -uroot -e'show databases;'

- name: Configure cmake
run: cmake -B${{github.workspace}}/build -DCMAKE_BUILD_TYPE=Debug
run: cmake -B${{github.workspace}}/build -DCOVERAGE_TEST=ON -DCMAKE_BUILD_TYPE=Debug

- name: Build with ${{ matrix.compiler }}
run: cmake --build ${{github.workspace}}/build --config Debug
Expand All @@ -32,9 +32,7 @@ jobs:
working-directory: ${{github.workspace}}/build
env:
CTEST_OUTPUT_ON_FAILURE: 1
run: ctest -C ${{ matrix.configuration }}
run: ctest -C ${{ matrix.configuration }} -j `nproc` -V

- name: Upload coverage to Codecov
uses: codecov/codecov-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}

0 comments on commit 8292d26

Please sign in to comment.