66 covr :
77 if : " ! contains(github.event.head_commit.message, '[ci skip]')"
88
9- timeout-minutes : 45
9+ timeout-minutes : 120
1010
11- runs-on : ubuntu-22.04
11+ runs-on : ubuntu-latest
1212
1313 name : covr
1414
@@ -17,48 +17,39 @@ jobs:
1717
1818 env :
1919 GITHUB_PAT : ${{ secrets.GITHUB_TOKEN }}
20- RSPM : https://packagemanager.rstudio.com/cran/__linux__/jammy/latest
20+ R_KEEP_PKG_SOURCE : yes
2121 R_REMOTES_NO_ERRORS_FROM_WARNINGS : true
22+ # # Test in other locale (optional)
23+ LANGUAGE : ${{ matrix.config.language }}
2224 # # R CMD check
25+ _R_CHECK_CRAN_INCOMING_ : false
2326 _R_CHECK_LENGTH_1_CONDITION_ : true
2427 _R_CHECK_LENGTH_1_LOGIC2_ : true
2528 _R_CHECK_MATRIX_DATA_ : true
26- _R_CHECK_CRAN_INCOMING_ : false
29+ _R_CHECK_SUGGESTS_ONLY_ : true
30+ _R_CHECK_THINGS_IN_TEMP_DIR_ : true
31+ RCMDCHECK_ERROR_ON : note
32+ # # Specific to futures
33+ R_FUTURE_RNG_ONMISUSE : error
2734
2835 steps :
2936 - uses : actions/checkout@v4
3037
31- - uses : r-lib/actions/setup-pandoc@v2
32-
3338 - uses : r-lib/actions/setup-r@v2
3439 with :
35- r-version : release
40+ use-public-rspm : true
3641
37- - name : Query dependencies
38- run : |
39- install.packages('remotes')
40- saveRDS(remotes::dev_package_deps(dependencies = TRUE), ".github/depends.Rds", version = 2)
41- writeLines(sprintf("R-%i.%i", getRversion()$major, getRversion()$minor), ".github/R-version")
42- shell : Rscript {0}
43-
44- - name : Cache R packages
45- uses : actions/cache@v3
42+ - uses : r-lib/actions/setup-r-dependencies@v2
4643 with :
47- path : ${{ env.R_LIBS_USER }}
48- key : ${{ runner.os }}-${{ hashFiles('.github/R-version') }}-1-${{ hashFiles('.github/depends.Rds') }}
49- restore-keys : ${{ runner.os }}-${{ hashFiles('.github/R-version') }}-1-
50-
51- - name : Install system dependencies
52- env :
53- RHUB_PLATFORM : linux-x86_64-ubuntu-gcc
54- run : |
55- Rscript -e "remotes::install_github('r-hub/sysreqs')"
56- sysreqs=$(Rscript -e "cat(sysreqs::sysreq_commands('DESCRIPTION'))")
57- sudo -s eval "$sysreqs"
44+ extra-packages : |
45+ any::rcmdcheck
46+ any::remotes
47+ any::sessioninfo
48+ any::covr
49+ needs : check
5850
5951 - name : Install dependencies
6052 run : |
61- install.packages(c("covr", "sessioninfo"))
6253 remotes::install_deps(dependencies = TRUE)
6354 install.packages(".", repos=NULL, type="source")
6455 shell : Rscript {0}
7667 ## https://app.codecov.io/gh/<org>/<repo>/settings
7768 ## 2. Set 'CODECOV_TOKEN' in GitHub Secrets:
7869 ## https://github.com/<org>/<repo>/settings/environments/
79- coverage <- covr::package_coverage()
70+ coverage <- covr::package_coverage(quiet = FALSE )
8071 print(coverage)
8172 covr::codecov(coverage = coverage, token="${{secrets.CODECOV_TOKEN}}")
8273 shell : Rscript {0}
74+
0 commit comments