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

Update CI workflow for C++ coverage generation and testing #571

Merged
merged 8 commits into from
Dec 6, 2024

Conversation

nagajaideep
Copy link
Contributor

References to other Issues or PRs or Relevant literature

Brief description of what is fixed or changed

  • Modified the CI workflow (ci.yml) to include steps for generating and uploading code coverage reports for the C++ modules.
  • Integrated gcov with necessary flags for accurate coverage measurement.
  • Ensured compatibility with existing build and test processes.

Other comments

run: |
mkdir -p build
cd build
cmake -DCMAKE_CXX_FLAGS="--coverage" ..
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is not the right way. Nice attempt though.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

removed this part of the code for now sir ,will work on it after the current issue

.github/workflows/ci.yml Outdated Show resolved Hide resolved
.github/workflows/ci.yml Outdated Show resolved Hide resolved
@nagajaideep
Copy link
Contributor Author

image
how to tackel this issue sir?based upon my understanding it is not able create it or not able to edit it ?any steps to resolve this issue sir?

@nagajaideep
Copy link
Contributor Author

Hello sir @czgdp1807

image

I hope you're doing well. I noticed that the test is failing with the error -lcov not found. As per your earlier suggestion, I added lcov to the environment.yml file in this PR. However, it seems the test is still failing, which I believe could be since it is still not added in the main repo?

Could you kindly review this and let me know your thoughts on the issue?

environment.yml Show resolved Hide resolved
.github/workflows/ci.yml Outdated Show resolved Hide resolved
.github/workflows/ci.yml Outdated Show resolved Hide resolved
@czgdp1807 czgdp1807 enabled auto-merge (squash) December 6, 2024 15:48
.github/workflows/ci.yml Outdated Show resolved Hide resolved
.github/workflows/ci.yml Outdated Show resolved Hide resolved
Copy link

codecov bot commented Dec 6, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 97.347%. Comparing base (ec0b015) to head (74d7956).
Report is 12 commits behind head on main.

Additional details and impacted files
@@              Coverage Diff              @@
##              main      #571       +/-   ##
=============================================
- Coverage   97.552%   97.347%   -0.205%     
=============================================
  Files           34        36        +2     
  Lines         4331      4411       +80     
=============================================
+ Hits          4225      4294       +69     
- Misses         106       117       +11     

see 1 file with indirect coverage changes

Impacted file tree graph

@czgdp1807 czgdp1807 disabled auto-merge December 6, 2024 16:24
@czgdp1807 czgdp1807 enabled auto-merge (squash) December 6, 2024 16:24
@czgdp1807 czgdp1807 merged commit ed88315 into codezonediitj:main Dec 6, 2024
8 checks passed
@nagajaideep nagajaideep deleted the testbranch branch December 6, 2024 16:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants