ESHackathon / CiteSource

http://www.eshackathon.org/CiteSource/
GNU General Public License v3.0
16 stars 2 forks source link

Install standard ci.yaml for r2u use #175

Closed eddelbuettel closed 1 month ago

eddelbuettel commented 1 month ago

As discussed over at the r2u repo yesterday this PR adds my standard ci.yaml. I added an extra paragraph with 'install_all' to explicitly install suggested dependencies as well as actual dependencies (I usually stick with just depends in most cases, one larger package at work also installs all suggests for maximum test coverage). Additional blocks or commands can be added, if needed, as usual via shell or Rscript snippet.

In my action, the deploy step failed but that was expected as I do not have your tokens. I think you can tune in the opening paragraph when these actions are triggered to exclude forks and/or skip the corresponding steps if the variables are empty.

As you see, I also skip tests on macOS "because life is too short". For most things this should just work: the underlying script happily installs R for macOS and packages resolve well (and fast) too as binaries "in most cases". But because I don't work on a mac myself I never quite au courant about what is happening and prefer to just skip these tests rather than chase occassional one-offs. Your mileage may differ, it is easy to turn this on. Similarly, I usually run Windows off a different yaml script when I have to.

As you can, this did what it set out to do, and quickly, and that usually works for me.

image