-
Notifications
You must be signed in to change notification settings - Fork 94
43 lines (36 loc) · 1.03 KB
/
Validations-R.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
name: Validations (R)
on:
workflow_dispatch:
pull_request:
branches: main
paths:
- 'data-processed/**'
- 'model-metadata/*'
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
- uses: r-lib/actions/setup-renv@v2
- name: Run validations
env:
PR_NUMBER: ${{ github.event.number }}
run: |
v <- HubValidations::validate_pr(
gh_repo = Sys.getenv("GITHUB_REPOSITORY"),
pr_number = Sys.getenv("PR_NUMBER"),
data_folder = "data-processed",
metadata_folder = "model-metadata"
)
HubValidations::check_for_errors(v)
shell: Rscript {0}