From 121c83a6b74425efc3de7e68aa14e3b55f9966b8 Mon Sep 17 00:00:00 2001 From: e-gugliotti-NOAA Date: Mon, 15 Apr 2024 09:50:14 -0400 Subject: [PATCH] list files --- .github/workflows/test-models-mac-14.yml | 51 ++++++++++++------------ 1 file changed, 26 insertions(+), 25 deletions(-) diff --git a/.github/workflows/test-models-mac-14.yml b/.github/workflows/test-models-mac-14.yml index 0cd5561..d0a6509 100644 --- a/.github/workflows/test-models-mac-14.yml +++ b/.github/workflows/test-models-mac-14.yml @@ -15,36 +15,37 @@ jobs: - name: Checkout repo uses: actions/checkout@v4 - - name: setup R - uses: r-lib/actions/setup-r@v2 + # - name: setup R + # uses: r-lib/actions/setup-r@v2 - - name: install remotes - run: Rscript -e 'install.packages("remotes")' + # - name: install remotes + # run: Rscript -e 'install.packages("remotes")' - - name: install r4ss - run: Rscript -e 'remotes::install_github("r4ss/r4ss")' + # - name: install r4ss + # run: Rscript -e 'remotes::install_github("r4ss/r4ss")' - - name: install other r packages - run: Rscript -e 'install.packages(c("purrr","furrr","parallely","future"))' + # - name: install other r packages + # run: Rscript -e 'install.packages(c("purrr","furrr","parallely","future"))' - name: Get the latest SS3 executable run: | wget https://api.github.com/repos/nmfs-ost/ss3-source-code/actions/artifacts/1409298598 - sudo unzip ss3-macos-13.zip - mv ss3_osx ss3 - sudo chmod a+x ss3 - mv ss3 models/ss3 - - - name: Run models - run: | - mod_names <- list.dirs(file.path("models"), full.names = FALSE, recursive = FALSE) - mod_paths <- list.dirs(file.path("models"), full.names = TRUE, recursive = FALSE) - print(mod_names) - - ncores <- parallelly::availableCores(omit = 1) - future::plan(future::multisession, workers = ncores) - - mod_ran <- furrr::future_map(mod_paths, function(x){r4ss::run(dir = x, exe = "/Users/runner/work/ss3-test-models/ss3-test-models/models/ss3", verbose = TRUE)}) + ls + # sudo unzip ss3-macos-13.zip + # mv ss3_osx ss3 + # sudo chmod a+x ss3 + # mv ss3 models/ss3 + + # - name: Run models + # run: | + # mod_names <- list.dirs(file.path("models"), full.names = FALSE, recursive = FALSE) + # mod_paths <- list.dirs(file.path("models"), full.names = TRUE, recursive = FALSE) + # print(mod_names) + + # ncores <- parallelly::availableCores(omit = 1) + # future::plan(future::multisession, workers = ncores) + + # mod_ran <- furrr::future_map(mod_paths, function(x){r4ss::run(dir = x, exe = "/Users/runner/work/ss3-test-models/ss3-test-models/models/ss3", verbose = TRUE)}) - print(mod_ran) - shell: Rscript {0} \ No newline at end of file + # print(mod_ran) + # shell: Rscript {0} \ No newline at end of file