scientific-python / cookie

Scientific Python Library Development Guide and Cookiecutter
https://learn.scientific-python.org/development
BSD 3-Clause "New" or "Revised" License
279 stars 50 forks source link

Add codecov badge to README.md #419

Open nstarman opened 4 months ago

nstarman commented 4 months ago

Just noticed in one of my projects that there isn't a badge for code coverage. I can open a PR if you're interested.

phinate commented 4 months ago

is there a way to reliably pre-produce a working codecov link for a project for the badge?

nstarman commented 4 months ago

I believe so: https://codecov.io/<codehost>/<orgname>/<reponame>/\branch/<branchname>/\graph/\badge.svg?

(see https://docs.codecov.com/docs/status-badges)

henryiii commented 4 months ago

I think that would make sense. Long term, I'd like some sort of "checkbox" feature where things could be selected or deselected, then codecov could be an option. But I think we are somewhat suggesting codecov at the moment. So a badge makes sense. It could be removed more easily than added.