r-lib / actions

GitHub Actions for the R community
Creative Commons Zero v1.0 Universal
930 stars 200 forks source link

Could we make more local code coverage options? #860

Open hadley opened 1 month ago

hadley commented 1 month ago

e.g. https://github.com/NIEHS/amadeus/blob/main/.github/workflows/test-coverage-local.yaml

Makes it easier for federal government to use and avoids problems like #834

gaborcsardi commented 1 month ago

I am not really sure what you mean by this. That workflow has a lot of stuff. We don't necessarily need to provide ready to use workflows for everybody, but rather the actions that people can use to build their own workflows.

Re https://github.com/r-lib/actions/issues/834, is codecov upload still a problem?

hadley commented 1 month ago

Right, I was thinking that we don't actually use the actual service that much, and if it wasn't too hard to generate and save the data locally, maybe it's worth doing?

gaborcsardi commented 1 month ago

We can save the data as an artifact and/or print it, but it is a bit cumbersome to look at it.

Really, the ideal situation would be if codecov.io worked a bit better, and now that we are updating it properly, hopefully it will. It gives us coverage over time and badges, and you can browse the code with coverage info.

Btw. you need to update to the latest test-coverage workflow to update.

Btw.2. there is a codecov extension for Chrome and Firefox, which is OK, then you can browse code on GH, with coverage info: https://github.com/codecov/codecov-browser-extension Unless you use another browser of course.