taxize
taxize copied to clipboard
R CMD Check cannot run via GitHub Actions because of untagged version
Hello, thanks a lot for developing and maintaining this resource! I noticed that the Github Actions for checking this R package are always failing in a day or so (see screenshot or a recent run) and this is likely due to a change in https://github.com/r-lib/actions/issues/639
Since the end of 2022, the following line:
https://github.com/ropensci/taxize/blob/d067035e756a4103ab95407d5603a967fb8b0703/.github/workflows/R-CMD-check.yaml#L31
should use the tagged version of the action as in the {targets}
package for example. and as shown below.
- uses: r-lib/actions/setup-r@v2
Changing only this line should be a quick fix, but the overall workflow might need a dust-off, I wanted to submit a PR, but unfortunately there are a couple of API tokens/keys that are necessary (e.g., IUCN) that I do not have and cannot obtain (error 403). Therefore I cannot test the Github Actions properly. I'll try again at the beginning of the year and hope to help fix this issue and contribute to your ongoing effort.
Best,
If interested, this may be a good opportunity to try rworkfllows
, which is a centrally maintained GH Action (so you don't have to worry about fixing it yourself).
https://github.com/neurogenomics/rworkflows
Thanks for the info @cpauvert and @bschilder! I don't have much experience with Github actions, so I will have to read up on it a bit and get back to this. In the mean time, I will implement the change suggested by @cpauvert.
No worries @zachary-foster, if you like I could make a PR and get it set up for you. For context, rworkflows was designed to abstract away a lot of the technical details of setting up GHA so that you don't have to worry about it too much on your end.
@bschilder Thank for the offer! Sure, a PR would be great!
Thanks @zachary-foster for considering this and for the last commit, it seems that something is still off unfortunately as the runs on macOS and windows are still failing..
Thanks @bschilder, I did not know about rworkflows
and it could be a good new start!
Do you also have a 403 error when trying to get the IUCN API key at https://apiv3.iucnredlist.org/api/v3/token?
Yes, I also get a 403 error at that link.
@zachary-foster @cpauvert just wanted to let you know I've made the PR for rworkflows here: #926