Skip to content

Commit 9aae7bc

Browse files
GHA: Run future.tests on mirai_cluster too
1 parent bd0671e commit 9aae7bc

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/future_tests.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ jobs:
1717
matrix:
1818
future:
1919
- { plan: 'future.mirai::mirai_multisession' }
20+
- { plan: 'mirai::daemons(2); plan(future.mirai::mirai_cluster)' }
2021

2122
env:
2223
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
@@ -62,7 +63,10 @@ jobs:
6263
run: |
6364
remotes::install_cran("future.tests")
6465
remotes::install_github("HenrikBengtsson/future.tests", ref="develop")
65-
if (grepl("::", plan <- "${{ matrix.future.plan }}") && nzchar(pkg <- sub("::.*", "", plan))) install.packages(pkg)
66+
## Identify and install future backend package in 'plan' variable, if any
67+
plan <- "${{ matrix.future.plan }}"
68+
pattern <- ".*(future[.][[:alnum:]]+)::[[:alnum:]]+.*"
69+
if (grepl(pattern, plan) && nzchar(pkg <- sub(pattern, "\\1", plan))) install.packages(pkg)
6670
shell: Rscript {0}
6771

6872
- name: Session info

0 commit comments

Comments
 (0)