NIH-Flu_ARIMA 2025-12-13 Submission #2785
This file contains hidden or 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
| name: Hub Submission Validation (R) | |
| on: | |
| workflow_dispatch: | |
| pull_request: | |
| branches: main | |
| paths: | |
| - 'model-output/**' | |
| - 'model-metadata/*' | |
| - '!**README**' | |
| jobs: | |
| validate-submission: | |
| runs-on: ubuntu-22.04 | |
| env: | |
| GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: r-lib/actions/setup-r@v2 | |
| with: | |
| install-r: false | |
| use-public-rspm: true | |
| extra-repositories: 'https://hubverse-org.r-universe.dev' | |
| - name: Update R | |
| run: | | |
| sudo apt-get update | |
| - uses: r-lib/actions/setup-r-dependencies@v2 | |
| with: | |
| pak-version: "devel" #Delete this line or comment it out when pak is fixed; added 2025-05-08. | |
| packages: | | |
| any::hubValidations | |
| any::sessioninfo | |
| - 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} |