Skip to content

Commit

Permalink
Integrate codecov (#47)
Browse files Browse the repository at this point in the history
  • Loading branch information
andreiavrammsd authored Aug 11, 2024
1 parent 1581307 commit aef8414
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/cmake.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,21 +23,25 @@ jobs:
name: "Ubuntu 22.04 GCC (Release)",
os: ubuntu-22.04,
build_type: "Release",
coverage: false,
}
- {
name: "Ubuntu 22.04 GCC (Debug)",
os: ubuntu-22.04,
build_type: "Debug",
coverage: true,
}
- {
name: "macOS Latest Clang (Release)",
os: macos-latest,
build_type: "Release",
coverage: false,
}
- {
name: "Windows Latest (Release)",
os: windows-latest,
build_type: "Release",
coverage: false,
}

steps:
Expand Down Expand Up @@ -71,6 +75,12 @@ jobs:
# See https://cmake.org/cmake/help/latest/manual/ctest.1.html for more detail
run: ctest -C ${{ matrix.config.build_type }} --verbose -R channel_test*

- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v4.0.1
with:
token: ${{ secrets.CODECOV_TOKEN }}
if: matrix.config.coverage == true

- name: Run examples
working-directory: ${{github.workspace}}/build
shell: bash
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

[![build](https://github.com/andreiavrammsd/cpp-channel/workflows/build/badge.svg)](https://github.com/andreiavrammsd/cpp-channel/actions)

[![codecov](https://codecov.io/github/andreiavrammsd/cpp-channel/graph/badge.svg?token=CKQ0TVW62Z)](https://codecov.io/github/andreiavrammsd/cpp-channel)

### Thread-safe container for sharing data between threads. Header-only.

* Thread-safe push and fetch.
Expand Down
11 changes: 11 additions & 0 deletions codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
coverage:
precision: 2
round: down
range: "100...100"
status:
project: true
patch: true
changes: true

ignore:
- 'tests/*'

0 comments on commit aef8414

Please sign in to comment.