Skip to content

Commit

Permalink
add code to prepare FIMS inputs by fleet
Browse files Browse the repository at this point in the history
  • Loading branch information
Bai-Li-NOAA committed Aug 2, 2024
1 parent 4d81eab commit a03d2fe
Show file tree
Hide file tree
Showing 8 changed files with 737 additions and 684 deletions.
39 changes: 0 additions & 39 deletions .github/workflows/run-pollock-tests-by-process.yml

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
name: Run pollock tests

on:
workflow_dispatch:

name: Run pollock tests (by fleet)
push:

jobs:
build-deploy:
Expand All @@ -19,21 +20,19 @@ jobs:
- name: Run pollock tests
run: |
# Names of required packages
packages <- c("dplyr", "tidyr", "ggplot2", "TMB", "reshape2", "here", "remotes", "lubridate")
packages <- c("dplyr", "tidyr", "ggplot2", "TMB", "reshape2", "here", "devtools", "lubridate")
# Install packages not yet installed
installed_packages <- packages %in% rownames(installed.packages())
if (any(installed_packages == FALSE)) {
install.packages(packages[!installed_packages], repos = "http://cran.us.r-project.org")
}
install.packages("FIMS", repos = c("https://noaa-fims.r-universe.dev", "https://cloud.r-project.org"))
# install.packages("FIMS", repos = c("https://noaa-fims.r-universe.dev", "https://cloud.r-project.org"))
devtools::install_github("NOAA-FIMS/FIMS")
# Load packages
invisible(lapply(packages, library, character.only = TRUE))
source(file.path(getwd(), "content", "run_pollock_tests_by_fleet.R"))
shell: Rscript {0}

- name: Upload artifact
uses: actions/upload-pages-artifact@v3
source(file.path(getwd(), "content", "run_pollock_tests.R"))
shell: Rscript {0}
Loading

0 comments on commit a03d2fe

Please sign in to comment.