openfga / python-sdk

OpenFGA SDK for Python 3 - https://pypi.org/project/openfga-sdk/
https://openfga.dev
Apache License 2.0
29 stars 10 forks source link

chore(ci): add code coverage support #84

Closed evansims closed 2 months ago

evansims commented 2 months ago

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

codecov-commenter commented 2 months ago

Welcome to Codecov :tada:

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 :open_umbrella:

evansims commented 2 months ago

@rhamzeh Updated based on your feedback 👍