@@ -10,7 +10,7 @@ name: Reverse Dependency Checks
1010
1111jobs :
1212 revdep-checks :
13- runs-on : macos -latest
13+ runs-on : ubuntu -latest
1414 strategy :
1515 fail-fast : false
1616 matrix :
@@ -29,22 +29,22 @@ jobs:
2929
3030 steps :
3131 - uses : actions/checkout@v4
32- with :
33- submodules : ' recursive'
3432 - uses : r-lib/actions/setup-pandoc@v2
3533 - uses : r-lib/actions/setup-r@v2
36-
37- - name : Install R Package Build Dependencies on MacOS
38- uses : r-hub/actions/setup-r-sysreqs@v1
3934 with :
40- type : ' full'
35+ use-public-rspm : true
36+
37+ # - name: Install R Package Build Dependencies on MacOS
38+ # uses: r-hub/actions/setup-r-sysreqs@v1
39+ # with:
40+ # type: 'full'
4141
4242 - uses : r-lib/actions/setup-r-dependencies@v2
4343 with :
4444 extra-packages :
45- local::. rstanarm BH RcppEigen RcppParallel github::ecmerkle/blavsam
46- bioc::DESeq2 github::stan-dev/cmdstanr github::CraigWangStat/eggCountsExtra
47- bioc::Rgraphviz rJava terra runjags magick github::bbolker/glmmadmb
45+ local::. github::ecmerkle/blavsam
46+ github::stan-dev/cmdstanr github::CraigWangStat/eggCountsExtra
47+ github::bbolker/glmmadmb
4848
4949 - name : Install additional R dependencies
5050 run : |
6464 dir.create("./revdepchecks")
6565
6666 download.file(
67- url = paste0(revdep_details[,"Repository"], " /", pkg_tar_names),
67+ url = paste0("https://cloud.r-project.org/src/contrib /", pkg_tar_names),
6868 destfile = file.path(getwd(), "revdepchecks", pkg_tar_names),
6969 method = "libcurl",
7070 mode = "wb"
7373 pak::pak(revdep_details[,"Package"], dependencies = TRUE)
7474
7575 tools::check_packages_in_dir("./revdepchecks", check_args=c("--no-manual", "--no-vignettes"), Ncpus=3)
76+ rcmdcheck::rcmdcheck(
77+ file.path(getwd(), "revdepchecks", pkg_tar_names),
78+ args=c("--as-cran","--no-manual"),
79+ env=c("_R_CHECK_CRAN_INCOMING_"="false", "_R_CHECK_DONTTEST_EXAMPLES_"="false"))
7680
77- res <- tools::check_packages_in_dir_details("revdepchecks/")
78- saveRDS(res, file = "batch-${{ matrix.batch }}-status.rds")
81+ # res <- tools::check_packages_in_dir_details("revdepchecks/")
82+ # saveRDS(res, file = "batch-${{ matrix.batch }}-status.rds")
7983 shell : Rscript {0}
8084
8185 - name : Upload reverse dependency check results
@@ -84,35 +88,35 @@ jobs:
8488 name : revdep-batch-${{ matrix.batch }}
8589 path : batch-${{ matrix.batch }}-status.rds
8690
87- combine-results :
88- runs-on : ubuntu-latest
89- needs : revdep-checks
90- if : always()
91-
92- steps :
93- - name : Download All Artifacts
94- uses : actions/download-artifact@v4
95- with :
96- path : revdep-results
97- pattern : revdep-batch-*
98- merge-multiple : true
99-
100- - uses : r-lib/actions/setup-r@v2
101- - name : Combine reverse dependency check results
102- run : |
103- files <- list.files("revdep-results", pattern = "*.rds", full.names = TRUE)
104- res <- do.call(rbind.data.frame, lapply(files, readRDS))
105- write.table(res, file = "revdep-results.csv", sep = ",", row.names = FALSE)
106-
107- res_error <- res[res$Status == "ERROR", ]
108- if (nrow(res_error) > 0) {
109- stop("The following packages had check errors: ", paste(res_error$Package, collapse=", "),
110- call. = FALSE)
111- }
112- shell : Rscript {0}
113-
114- - uses : actions/upload-artifact@v4
115- if : always()
116- with :
117- name : revdep-status
118- path : revdep-results.csv
91+ # combine-results:
92+ # runs-on: ubuntu-latest
93+ # needs: revdep-checks
94+ # if: always()
95+ #
96+ # steps:
97+ # - name: Download All Artifacts
98+ # uses: actions/download-artifact@v4
99+ # with:
100+ # path: revdep-results
101+ # pattern: revdep-batch-*
102+ # merge-multiple: true
103+
104+ # - uses: r-lib/actions/setup-r@v2
105+ # - name: Combine reverse dependency check results
106+ # run: |
107+ # files <- list.files("revdep-results", pattern = "*.rds", full.names = TRUE)
108+ # res <- do.call(rbind.data.frame, lapply(files, readRDS))
109+ # write.table(res, file = "revdep-results.csv", sep = ",", row.names = FALSE)
110+
111+ # res_error <- res[res$Status == "ERROR", ]
112+ # if (nrow(res_error) > 0) {
113+ # stop("The following packages had check errors: ", paste(res_error$Package, collapse=", "),
114+ # call. = FALSE)
115+ # }
116+ # shell: Rscript {0}
117+
118+ # - uses: actions/upload-artifact@v4
119+ # if: always()
120+ # with:
121+ # name: revdep-status
122+ # path: revdep-results.csv
0 commit comments