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 Code Coverage Measurement and Codecov Upload in PR and Release Workflows #221

Open
JaeHyuckSa opened this issue Aug 17, 2024 · 0 comments
Assignees
Labels
enhancement [PR/Issue] New feature or request

Comments

@JaeHyuckSa
Copy link

Is your feature request related to a problem? Please describe.
I'm always frustrated when I can't easily verify the code coverage during pull requests and before releases. Currently, there is no automated way to ensure that our code changes maintain or improve coverage, making it difficult to consistently monitor and improve the quality of the codebase.

Describe the solution you'd like
I would like to integrate code coverage measurement into our GitHub Actions workflows, with an additional step to upload the coverage report to Codecov. The workflow should run automatically during pull requests and when a release is published. After the tests run, the coverage report should be uploaded to Codecov, where we can track the coverage trends over time. This will allow us to easily review and enforce coverage thresholds as part of our CI/CD process.

Describe alternatives you've considered
An alternative solution was to manually run code coverage tests locally before submitting a PR or creating a release, and then manually checking the results. However, this approach is prone to human error and can lead to inconsistencies in how coverage is measured and reported. Another alternative was to use only GitHub Actions to display the coverage report, but this lacks the comprehensive analysis and historical tracking provided by Codecov.

Additional context
We are currently using pytest and pytest-cov for testing. The proposed feature would build on our existing setup by adding the necessary steps to our CI pipeline in GitHub Actions, including a step to upload the coverage report to Codecov. This change would help us maintain code quality and provide better insights into our test coverage over time, making it easier to identify areas that need improvement.

@JaeHyuckSa JaeHyuckSa added the enhancement [PR/Issue] New feature or request label Aug 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement [PR/Issue] New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants