From 3856cf3742188980343361dd1b15a4733249c41e Mon Sep 17 00:00:00 2001 From: e-gugliotti-NOAA Date: Mon, 15 Apr 2024 14:12:39 -0400 Subject: [PATCH] get r version info macos-13 --- .github/workflows/test-models-mac-14.yml | 75 ++++++++++++------------ 1 file changed, 39 insertions(+), 36 deletions(-) diff --git a/.github/workflows/test-models-mac-14.yml b/.github/workflows/test-models-mac-14.yml index 416d7c8..d552321 100644 --- a/.github/workflows/test-models-mac-14.yml +++ b/.github/workflows/test-models-mac-14.yml @@ -4,7 +4,7 @@ on: jobs: update-ss3-test-models-mac: - runs-on: macos-12 + runs-on: macos-13 env: R_REMOTES_NO_ERRORS_FROM_WARNINGS: true GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} @@ -17,40 +17,43 @@ jobs: - name: setup R uses: r-lib/actions/setup-r@v2 + + - name: R.version + run: Rscript -e 'R.version' - - name: install remotes - run: Rscript -e 'install.packages("remotes")' - - - 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: use download artifact - uses: actions/download-artifact@v4 - with: - name: ss3-macos-13 - github-token: ${{ secrets.GITHUB_TOKEN}} # token with actions:read permissions on target repo - repository: nmfs-ost/ss3-source-code - run-id: 8664716853 - - - name: Change exe name - run: | - 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)}) + # - name: install remotes + # run: Rscript -e 'install.packages("remotes")' + + # - 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: use download artifact + # uses: actions/download-artifact@v4 + # with: + # name: ss3-macos-13 + # github-token: ${{ secrets.GITHUB_TOKEN}} # token with actions:read permissions on target repo + # repository: nmfs-ost/ss3-source-code + # run-id: 8664716853 + + # - name: Change exe name + # run: | + # 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