airr-community / airr-standards

AIRR Community Data Standards
https://docs.airr-community.org
Creative Commons Attribution 4.0 International
35 stars 23 forks source link

Test R-CMD-check using GitHub Actions #546

Closed javh closed 3 years ago

javh commented 3 years ago

A test PR using GitHub actions.

javh commented 3 years ago

Check runs in 3:43 using the rocker/verse image. ~2:30 of that is R CMD check itself, which isn't going to get any faster.

~50 sec is setting up the container - not sure yet if that can be reduced via caching

javh commented 3 years ago

Coolness. I'll add the python tests and see if I can use a smaller container / caching before merging.

javh commented 3 years ago

First draft of GitHub Actions for the schema consistency checks, R package, and python package are now in this PR. They are in separate configs in the .github/workflows directory.

I also added a condition to decide whether the tests will be run for the R and python packages - requiring a file to be changed in either the GitHub Actions config directory or lang/R / lang/python, as appropriate. Which should save a lot of time, because then we don't need to run the R tests every time we change the schema. It's a bit annoying to test though, because the workflow is skipped, so I can disable it for now if we want.