Skip to content

Commit

Permalink
✨ feat: enhance CI with Codecov integration
Browse files Browse the repository at this point in the history
✨ feat: enhance CI with Codecov integration

🔧 CI Configuration:
- Added Codecov token and verbose output to CI workflow.
- Configured Codecov to fail CI if errors are encountered.
- Set specific flags and name for Codecov reporting.

✨ Codecov Configuration:
- Introduced a new codecov.yml file for detailed configuration.
- Specified coverage requirements and thresholds for project and patch.
- Configured comment layout and parser settings for better reporting.

These changes significantly enhance the CI workflow by integrating Codecov for improved coverage reporting and management.
Arakiss committed Dec 6, 2024
1 parent d846c42 commit 3bec8d5
Showing 2 changed files with 36 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -104,7 +104,12 @@ jobs:
uses: codecov/codecov-action@v3
with:
file: ./coverage.xml
token: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: true
verbose: true
flags: unittests
name: codecov-umbrella
override_branch: ${{ github.ref_name }}

build:
name: Build Package
31 changes: 31 additions & 0 deletions codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
codecov:
require_ci_to_pass: yes
notify:
wait_for_ci: yes

coverage:
precision: 2
round: down
range: "70...100"
status:
project:
default:
target: 80% # the required coverage value
threshold: 1% # the leniency in hitting the target
patch:
default:
target: 80%
threshold: 1%

parsers:
gcov:
branch_detection:
conditional: yes
loop: yes
method: no
macro: no

comment:
layout: "reach,diff,flags,tree"
behavior: default
require_changes: no

0 comments on commit 3bec8d5

Please sign in to comment.