neurogenomics / rworkflows

Continuous integration for R packages. 🔀 Automates testing ✅, documentation website building 📦, & containerised deployment 🐳.
https://neurogenomics.github.io/rworkflows/
73 stars 7 forks source link

Add support for CODECOV_TOKEN #132

Closed HDash closed 4 weeks ago

HDash commented 1 month ago

Add support for the CODECOV_TOKEN GitHub secret. This input helps prevent coverage report upload failures, which have been quite frequent recently.

Coverage report upload failure error:

Run covr::codecov()
  covr::codecov()
  shell: Rscript {0}
  env:
    RGL_USE_NULL: TRUE
    R_REMOTES_NO_ERRORS_FROM_WARNINGS: true
    RSPM: https://packagemanager.rstudio.com/cran/__linux__/focal/release
    TZ: UTC
    NOT_CRAN: false
Request failed [429]. Retrying in 1 seconds...
Request failed [429]. Retrying in 2.5 seconds...
$detail
[1] "Rate limit reached. Please upload with the Codecov repository upload token to resolve issue. Expected time to availability: 1915s."

More information: https://docs.codecov.com/docs/adding-the-codecov-token

This implementation has been successfully tested on MotifPeeker with my fork.

bschilder commented 4 weeks ago

Thanks so much for this @HDash !