Closed rrmistry closed 2 years ago
Take a look at this and see if we can use Azure DevOps to host code-coverage data: https://docs.microsoft.com/en-us/azure/devops/pipelines/tasks/test/publish-code-coverage-results?view=azure-devops
Found the exact documentation you'll need @msuthar09 : https://docs.microsoft.com/en-us/azure/devops/pipelines/ecosystems/python?view=azure-devops#publish-code-coverage-results
Background
A lot of packages (not just Python but many programming languages) use
unit-testing
andcode-coverage
concepts.This means that a user of the package has the confidence that the code being used is adequately tested and checked before pushing to production.
This information is "distilled" into
badges
that can be confidently displayed on the top ofReadMe
pages.A good example is the Python
tqdm
package:https://pypi.org/project/tqdm/
At the very minimum, we need to add the
coverage
orcodecov
badges to our test package.Requirement
See what is the minimum requirement to have this badge be automatically displayed for new package versions.
Reference: https://stackoverflow.com/questions/64037397/collect-code-coverage-using-github-action