-
Notifications
You must be signed in to change notification settings - Fork 15
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
chore(ci): add code coverage support #84
Conversation
.github/workflows/main.yml
Outdated
@@ -6,42 +6,72 @@ on: | |||
pull_request: | |||
workflow_dispatch: | |||
|
|||
concurrency: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Support canceling in progress, but redundant workflow runs when a pull request is rapidly updated. All other runs behave as always.
Welcome to Codecov 🎉Once you merge this PR into your default branch, you're all set! Codecov will compare coverage reports and display results in all future pull requests. Thanks for integrating Codecov - We've got you covered ☂️ |
0d0f91d
to
c41e101
Compare
@@ -10,7 +10,6 @@ | |||
NOTE: This file was auto generated by OpenAPI Generator (https://openapi-generator.tech). DO NOT EDIT. | |||
""" | |||
|
|||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is necessary to make the linter happy and pass the tests. I will check why it's catching it here, but the Generator output isn't.
@@ -1,6 +1,10 @@ | |||
-r requirements.txt | |||
|
|||
mock >= 5.1.0, < 6 | |||
autoflake==2.3.0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These are usually installed directly in the Generator's Makefile, but since we'll also be running tests here, let's transition them into the development dependencies manifest directly.
5b5c4f1
to
86f17b0
Compare
a32dfa7
to
3b0208c
Compare
@rhamzeh Updated based on your feedback 👍 |
Description
This PR introduces Codecov to our CI for better test coverage. I've set the minimum coverage at 60%, which is currently above our 68% coverage level. This ensures a solid starting point for enhancements.
Additionally, it integrates essential tools (flake8, black, isort, autoflake) directly into our test workflow. This helps us catch issues introduced in individual PRs, rather than relying solely on the SDK generator output.
This PR reflects changes directly from the SDK generator. Once validated here, a separate PR will update the repository and other SDKs.
References
N/A
Review Checklist
main