Public-Health-Scotland / phsstyles

Standard Graphic Styles for use in Public Health Scotland (https://public-health-scotland.github.io/phsstyles/)
https://public-health-scotland.github.io/phsstyles/
Other
14 stars 1 forks source link

Expanding the CI workflows #5

Open Moohan opened 2 years ago

Moohan commented 2 years ago

I'm updating the CI on all the PHS packages.

I updated the pkgdown workflow to be based off of the r-lib actions v2 example.

I've added a workflow and infrastructure to work out and report test coverage to codecov.io

I've added an R-CMD check to use the standard actions from r-lib. It tests against quite a few R versions with an argument to specify whether they are must_pass or not i.e. will the whole workflow fail if they do? The versions of R selected are from a brief chat with Russell and are trying to balance what is available now with what we will have on the new R infrastructure, as well as what any external users might be using...

I've also added workflows to automatically document, style and lint any code. The idea is that these will run on any PR code and resolve any simple issues automatically.

Moohan commented 1 year ago

I'm pretty sure the reason document and style workflows are failing is that this PR is via a fork, so they're running on the PHS/phsstyles repo but need to commit to moohan/phsstyles. It's using the same code as on phsmethods and other repos, so should work fine once it's merged.

Moohan commented 1 year ago

I'm pretty sure the reason document and style workflows are failing is that this PR is via a fork, so they're running on the PHS/phsstyles repo but need to commit to moohan/phsstyles. It's using the same code as on phsmethods and other repos, so should work fine once it's merged.

It sounds like there is a workaround but it's a bit of a faff, let me know if you want me to try and do it?