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 #181

Open
JaeHyuckSa opened this issue Aug 17, 2024 · 0 comments
Assignees

Comments

@JaeHyuckSa
Copy link

JaeHyuckSa commented Aug 17, 2024

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.

codecov Link

@soimkim soimkim linked a pull request Aug 18, 2024 that will close this issue
5 tasks
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 a pull request may close this issue.

1 participant