Skip to content

Commit

Permalink
add: reactivate codecov
Browse files Browse the repository at this point in the history
  • Loading branch information
ObiWahn committed Nov 24, 2023
1 parent 24ce90b commit 94f0031
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
ignore:
- example/*
- example/**/*
- tests/*
- tests/**/*
32 changes: 32 additions & 0 deletions .github/workflows/code-coverage.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Code Coverage

on:
push:
paths-ignore:
- 'README.md'
- 'doc/**'
pull_request:
paths-ignore:
- 'README.md'
- 'doc/**'

jobs:
code-coverage:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3

- run: cmake -E make_directory build

- working-directory: build/
run: cmake $GITHUB_WORKSPACE -DEXT_DOWNLOAD=ON -DLIBEXT_TESTS=ON -DLIBEXT_TESTS_NO_TIME_CRITICAL=ON -DCMAKE_CXX_FLAGS="-coverage" -DCLANG_ANALYZE=ON

- working-directory: build/
run: cmake --build .

- working-directory: build/
run: ctest -VV --output-on-failure

- working-directory: build/
run: bash <(curl -s https://codecov.io/bash)
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
|cpp| |mit|
|cpp| |mit| |codecov|

basics
======
Expand Down

0 comments on commit 94f0031

Please sign in to comment.