Skip to content

Commit 1fa08b1

Browse files
GHA: Check plan(cluster, workers = parallelly::makeClusterSequential())
1 parent 2d3f4bc commit 1fa08b1

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

.github/workflows/future_tests-future.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ jobs:
2020
- { plan: 'multicore' }
2121
- { plan: 'multisession' }
2222
- { plan: 'sequential' }
23+
- { plan: 'plan(cluster, workers = parallelly::makeClusterSequential())' }
2324

2425
env:
2526
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
@@ -66,6 +67,12 @@ jobs:
6667
plan <- "${{ matrix.future.plan }}"
6768
pattern <- ".*(future[.][[:alnum:]]+)::[[:alnum:]]+.*"
6869
if (grepl(pattern, plan) && nzchar(pkg <- sub(pattern, "\\1", plan))) install.packages(pkg)
70+
## Special case
71+
if (grepl("makeClusterSequential", plan)) {
72+
if (packageVersion("future") < "1.68.0-9036") {
73+
remotes::install_github("futureverse/future", ref = "develop")
74+
}
75+
}
6976
shell: Rscript {0}
7077

7178
- name: Session info

0 commit comments

Comments
 (0)