-
Notifications
You must be signed in to change notification settings - Fork 184
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Migrate CI from travis to github actions? #572
Comments
I could try to help with this. |
Cool. Do you have any experience setting up github actions for R packages? If not, @jimhester did a talk at rstudio conf on this topic earlier in the year: https://www.jimhester.com/talk/2020-rsc-github-actions/ At present our CI runs against a few versions of r (doing R CMD check). It also does a test coverage analysis. |
Yep, I have set up GitHub CI for a number of R packages already. I am tempted to go the {tidyverse} way, using
I'll try to submit a PR and include test coverage too. Update: {vctrs} has opted for 2 separate workflows - one to run the R CMD check and the other one to run test coverage. |
@russHyde I think I managed to configure CI to run correctly with GitHub Actions. Please have a look at the results - https://github.com/dragosmg/lintr/actions. Some tests are failing on Windows, but all tests pass on macOS and Ubuntu. == testthat results =========================================================== Travis CI checks against Linux only so not sure how much of a concern this is. Any thoughts? |
I can repro the last three errors sporadically on my Windows machine. The first one is a fairly recent test and shouldn't fail. |
I don't have access to a Windows machine and cannot reproduce any of the failures. I see 2 options going forward:
I'd be tempted to suggest approach 1 since it solves this issue (migrates to GH Actions and adds checks on more OSs than at present), but it would definitely be nice to have all tests passing on all major platforms. |
I've looked into the failure and to me it seems, the test case is likely wrong:
Note that all lints in the file follow the pattern
The expected result is missing the closing code fence so to me it seems the test case as well as the implementation on macOS and linux are bugged... @jimhester can you see what's correct? |
Re the other test case: fixed in #576. |
Thanks so much for looking into this @dragosmg . That the CI runs complete on the same day is a bonus, the Travis builds seem to be taking for ever at the moment. |
I hadn't realised Travis has got so bad lately. Most checks should finish in under 10 minutes on GitHub CI. There is a caching step that speeds up the installation of dependencies. Many thanks to @jimhester and the other developers who made this functionality super easy to use with {usethis}. |
Would it be a good idea to move away from travis CI, and use GHA instead? It doesn't look like free open source support can be guaranteed at travis for the foreseeable future.
I've noted a couple of lintr users have raised issues re using lintr on GHA, but i haven't any experience using GHA yet.
The text was updated successfully, but these errors were encountered: