-
Notifications
You must be signed in to change notification settings - Fork 301
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
Github actions for sf #1309
Comments
Yes, I am very much interested. Can it also take over code coverage somehow? |
Yes, it still uses codecov sf/.github/workflows/R-CMD-check.yaml Lines 120 to 123 in 53f4dfb
|
I have an issue with both Windows and Mac. WindowsEverything looks fine, except a warning that
Surprisingly, the warning is on Windows, complaining for non-Windows OS, but I don't have this warning on other OS. Also appveyor doesn't complain. Maybe it has to do with the default encoding used in github actions. MacThis one seems to be more common, and I've seen issues revolving around these errors, but if anyone has a solution that could save me some time since I don't have a mac, so I need to debug it through github actions.
I'll work on these, but if you have any idea feel free to jump in. Thanks. |
I can help with the Mac issue |
- add Rcpp drat repo to work around RcppCore/Rcpp#1060 - add configure.args for sf and rgdal (hopefully only necessary temporarily: r-spatial#1312) - don't build vignettes on macOS
FYI since you are already using {tic} on Travis here: https://ropensci.org/technotes/2020/03/13/tic-ghactions/ |
@etiennebr I think we may need to split up the workflows into Linux (with the postgres images) and mac/windows... I don't know a way to conditionally use |
@ateucher, I came to the same conclusion about the services. Maybe it wasn't obvious from the logs, so here's the link to my fork PR etiennebr#69. |
- add Rcpp drat repo to work around RcppCore/Rcpp#1060 - add configure.args for sf and rgdal (hopefully only necessary temporarily: r-spatial#1312) - don't build vignettes on macOS
Great work! Looks like this can be closed, now? |
Thanks, I'll probably need an extra week, but here's what I would still like to do:
|
Merging #1358 will simplify the macOS actions as well. For codecov, there needs to be a |
Just browsed through the YAML file in #1358 and sharing my thoughts. I already saw that some other spatial pkgs adapt the sf GHA config so maybe it makes sense to polish it up/reduce clutter a bit to avoid populating all of this to other repos.
Travis is still doing the auto-deploy of the pkgdown site via {tic}. If you want to remove Travis and tic completely, keep in mind to do active pkgdown deployment in some other way. CommentsNot needed with covr v3.5.0. pkgconfig is now installed by default This can be solved in a canonical way by setting r-quantities/units#236 (comment) Unless you want the very latest libs, using a PPA is not necessary. |
Thanks @pat-s this is very helpful. I am also surprised by the rapid adoption of these actions, so I agree they should be polished! The only reason for not using |
Thanks! No worries, I'm not affronted in any way - I assumed that this was the reason and it's very much understandable. {tic} can do a lot, yes - maybe even a bit too much. And it can be scary due to the large documentation and the complexity of CI in general (in its details). There are quite some opinionated differences to the tidyverse approach. But this is the wrong place to expand more on this. LMK if I can help (happy to do so at any time). |
gives consistent setup errors now for weeks, spamming me with error mails with every push. Can I switch this off, or does anyone know how to fix it? |
The issue comes from a faulty package cache because it was not invalidated for quite some time: https://github.com/r-spatial/sf/runs/702728725?check_suite_focus=true In GitHub in general, you can currently either
This applies to all repos and cannot be specified in a per-repo base. Fixing this particular issues requires to invalidate the current cache hash, for example by appending a (FWIW: To account for this issue and prevent broken package caches in general, {tic} builds a fresh cache daily in a CRON build) |
Switching it off is fine for now. I think I want to use |
@edzer, there's absolutely no rush, but maybe following #1234 we could move all sf tests to github actions? It should be much faster to run tests, and we can add support for Mac OS.
I think it will require distinct files since windows and mac don't support docker compose (to run the tests against PostgreSQL). I can figure this out if you are interested in the migration. Let me know if you'd rather stick to travis for now.
As @Robinlovelace mentionned, we could store the actions in https://github.com/edzer/sf_dep.
The text was updated successfully, but these errors were encountered: