diff --git a/.github/workflows/pkgdown.yml b/.github/workflows/pkgdown.yml index 3dc31941..b1c57f99 100644 --- a/.github/workflows/pkgdown.yml +++ b/.github/workflows/pkgdown.yml @@ -29,6 +29,10 @@ jobs: - uses: r-lib/actions/setup-r@v2 + - uses: supercharge/redis-github-action@1.7.0 + with: + redis-version: 7 + - uses: r-lib/actions/setup-r-dependencies@v2 with: extra-packages: any::pkgdown, local::. diff --git a/tests/testthat/helper.R b/tests/testthat/helper.R index 4b858960..10334c89 100644 --- a/tests/testthat/helper.R +++ b/tests/testthat/helper.R @@ -1,4 +1,3 @@ -library(rush) library(checkmate) # Simple 1D Function diff --git a/tests/testthat/test_ArchiveAsync.R b/tests/testthat/test_ArchiveAsync.R index bb392838..c3f877ee 100644 --- a/tests/testthat/test_ArchiveAsync.R +++ b/tests/testthat/test_ArchiveAsync.R @@ -3,7 +3,7 @@ test_that("ArchiveAsync works with one point", { skip_if_not_installed("rush") flush_redis() - rush = RushWorker$new(network_id = "remote_network", remote = FALSE) + rush = rush::RushWorker$new(network_id = "remote_network", remote = FALSE) archive = ArchiveAsync$new( search_space = PS_2D, diff --git a/tests/testthat/test_OptimInstanceAsyncSingleCrit.R b/tests/testthat/test_OptimInstanceAsyncSingleCrit.R index ac8aee1d..38854700 100644 --- a/tests/testthat/test_OptimInstanceAsyncSingleCrit.R +++ b/tests/testthat/test_OptimInstanceAsyncSingleCrit.R @@ -26,7 +26,7 @@ test_that("rush controller can be passed to OptimInstanceAsyncSingleCrit", { skip_if_not_installed("rush") flush_redis() - rush = rsh(network_id = "remote_network") + rush = rush::rsh(network_id = "remote_network") instance = oi_async( objective = OBJ_2D, @@ -63,7 +63,7 @@ test_that("point evaluation works", { flush_redis() # evaluation takes place on the workers - rush = RushWorker$new("test", remote = FALSE) + rush = rush::RushWorker$new("test", remote = FALSE) instance = oi_async( objective = OBJ_2D, search_space = PS_2D,