Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Integrate codecov #47

Merged
merged 5 commits into from
Aug 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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/[email protected]
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/*'
Loading