Skip to content

GT-FluFNP-submission #10

GT-FluFNP-submission

GT-FluFNP-submission #10

name: Hub Submission Validation (R)
on:
workflow_dispatch:
pull_request:
branches: main
paths:
- 'model-output/**'
- 'model-metadata/*'
- '!**README**'
jobs:
validate-submission:
runs-on: ubuntu-latest
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v3
- uses: r-lib/actions/setup-r@v2
with:
install-r: false
use-public-rspm: true
- name: Install system dependencies
run: |
sudo apt-get update
sudo apt-get install libcurl4-openssl-dev libv8-dev
- name: Install HubValidations
run: |
install.packages("remotes")
remotes::install_github("Infectious-Disease-Modeling-Hubs/hubValidations")
shell: Rscript {0}
- name: Run validations
env:
PR_NUMBER: ${{ github.event.number }}
run: |
library("hubValidations")
v <- hubValidations::validate_pr(
gh_repo = Sys.getenv("GITHUB_REPOSITORY"),
pr_number = Sys.getenv("PR_NUMBER"),
skip_submit_window_check = FALSE
)
hubValidations::check_for_errors(v, verbose = TRUE)
shell: Rscript {0}