generated from nmfs-opensci/NOAA-quarto-simple
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6c22b7a
commit 4d81eab
Showing
5 changed files
with
202 additions
and
123 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
on: | ||
workflow_dispatch: | ||
|
||
name: Run pollock tests (by fleet) | ||
|
||
jobs: | ||
build-deploy: | ||
runs-on: macos-latest | ||
env: | ||
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
steps: | ||
- name: Check out repository | ||
uses: actions/checkout@v2 | ||
|
||
- name: Set up R (needed for Rmd) | ||
uses: r-lib/actions/setup-r@v2 | ||
|
||
- name: Run pollock tests | ||
run: | | ||
# Names of required packages | ||
packages <- c("dplyr", "tidyr", "ggplot2", "TMB", "reshape2", "here", "remotes", "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")) | ||
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
on: | ||
workflow_dispatch: | ||
|
||
name: Run pollock tests (by process) | ||
|
||
jobs: | ||
build-deploy: | ||
runs-on: macos-latest | ||
env: | ||
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
steps: | ||
- name: Check out repository | ||
uses: actions/checkout@v2 | ||
|
||
- name: Set up R (needed for Rmd) | ||
uses: r-lib/actions/setup-r@v2 | ||
|
||
- name: Run pollock tests | ||
run: | | ||
# Names of required packages | ||
packages <- c("TMB") | ||
# 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")) | ||
# Load packages | ||
invisible(lapply(packages, library, character.only = TRUE)) | ||
source(file.path(getwd(), "content", "run_pollock_tests.R")) | ||
shell: Rscript {0} | ||
|
||
- name: Upload artifact | ||
uses: actions/upload-pages-artifact@v3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters