2626
2727 timeout-minutes : 30
2828
29- runs-on : ubuntu-20.04
29+ runs-on : ubuntu-latest
3030
3131 name : future.plan=${{ matrix.future.plan }}
3232
@@ -39,61 +39,55 @@ jobs:
3939 - { plan: 'multisession' }
4040 - { plan: 'sequential' }
4141 - { plan: 'future.batchtools::batchtools_local' }
42+ - { plan: 'future.batchtools::batchtools_bash' }
4243 - { plan: 'future.callr::callr' }
44+ - { plan: 'future.mirai::mirai_multisession' }
45+ - { plan: 'future.mirai::mirai_cluster' }
4346
4447 env :
4548 GITHUB_PAT : ${{ secrets.GITHUB_TOKEN }}
46- RSPM : https://packagemanager.rstudio.com/cran/__linux__/focal/latest
4749 R_REMOTES_NO_ERRORS_FROM_WARNINGS : true
4850 # # R CMD check
49- _R_CHECK_LENGTH_1_CONDITION_ : true
50- _R_CHECK_LENGTH_1_LOGIC2_ : true
5151 _R_CHECK_MATRIX_DATA_ : true
5252 _R_CHECK_CRAN_INCOMING_ : false
5353 # # Specific to futures
5454 R_FUTURE_RNG_ONMISUSE : error
5555
5656 steps :
57- - uses : actions/checkout@v3
57+ - uses : actions/checkout@v4
5858
5959 - uses : r-lib/actions/setup-pandoc@v2
6060
6161 - uses : r-lib/actions/setup-r@v2
6262 with :
63- r-version : release
63+ use-public-rspm : true
6464
65- - name : Query R package dependencies
66- run : |
67- install.packages('remotes')
68- saveRDS(remotes::dev_package_deps(dependencies = TRUE), ".github/depends.Rds", version = 2)
69- writeLines(sprintf("R-%i.%i", getRversion()$major, getRversion()$minor), ".github/R-version")
70- shell : Rscript {0}
71-
72- - name : Cache R packages
73- uses : actions/cache@v3
65+ - uses : r-lib/actions/setup-r-dependencies@v2
7466 with :
75- path : ${{ env.R_LIBS_USER }}
76- key : ${{ runner.os }}-${{ hashFiles('.github/R-version') }}-1-${{ hashFiles('.github/depends.Rds') }}
77- restore-keys : ${{ runner.os }}-${{ hashFiles('.github/R-version') }}-1-
78-
79- - name : Install R package system dependencies (Linux)
80- if : runner.os == 'Linux'
81- env :
82- RHUB_PLATFORM : linux-x86_64-ubuntu-gcc
67+ extra-packages : |
68+ any::rcmdcheck
69+ any::remotes
70+ any::sessioninfo
71+ any::covr
72+ needs : check
73+
74+ - name : Install dependencies
8375 run : |
84- Rscript -e " remotes::install_github('r-hub/sysreqs')"
85- sysreqs=$(Rscript -e "cat(sysreqs::sysreq_commands('DESCRIPTION')) ")
86- sudo -s eval "$sysreqs"
76+ remotes::install_deps(dependencies = TRUE)
77+ install.packages(".", repos=NULL, type="source ")
78+ shell : Rscript {0}
8779
88- - name : Install R package dependencies
80+ - name : Session info
8981 run : |
90- remotes::install_deps(dependencies = TRUE)
91- install.packages(".", repos=NULL, type="source") ## needed by parallel workers
82+ options(width = 100)
83+ pkgs <- installed.packages()[, "Package"]
84+ sessioninfo::session_info(pkgs, include_base = TRUE)
9285 shell : Rscript {0}
9386
9487 - name : Install 'future.tests' and any backend R packages
9588 run : |
9689 remotes::install_cran("future.tests")
90+ remotes::install_github("HenrikBengtsson/future.tests", ref="develop")
9791 if (grepl("::", plan <- "${{ matrix.future.plan }}") && nzchar(pkg <- sub("::.*", "", plan))) install.packages(pkg)
9892 shell : Rscript {0}
9993
@@ -112,14 +106,14 @@ jobs:
112106
113107 - name : Upload check results
114108 if : failure()
115- uses : actions/upload-artifact@v3
109+ uses : actions/upload-artifact@v4
116110 with :
117111 name : ${{ runner.os }}-r${{ matrix.future.plan }}-results
118112 path : check
119113` ` `
120114
121- For real-world examples, see the GitHub repositories of [**future**](https://github.com/futureverse/future), [**future.batchtools**](https://github.com/futureverse/future.batchtools), and [**future.callr**](https://github.com/futureverse/future.callr ).
115+ For real-world examples, see the GitHub repositories of [**future**](https://github.com/futureverse/future), [**future.batchtools**](https://github.com/futureverse/future.batchtools), [**future.callr**](https://github.com/futureverse/future.callr), and [**future.callr**](https://github.com/futureverse/future.mirai ).
122116
123117[R]: https://www.r-project.org
124- [future]: https://cran.r-project .org/package=future
125- [future.tests]: https://cran.r-project.org/package= future.tests
118+ [future]: https://future.futureverse .org
119+ [future.tests]: https://future.tests.futureverse.org
0 commit comments