-
Notifications
You must be signed in to change notification settings - Fork 0
79 lines (68 loc) · 2.15 KB
/
compile_main_fredi_data.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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
### https://github.com/actions/upload-artifact
### https://github.blog/changelog/2021-11-10-github-actions-input-types-for-manual-workflows/
### https://docs.github.com/en/actions/using-workflows/caching-dependencies-to-speed-up-workflows
### https://github.com/r-lib/actions/tree/v2/setup-r-dependencies
### https://docs.github.com/en/actions/using-jobs/using-conditions-to-control-job-execution
### For uploading artifacts:
### "path:" is the output path where Pandoc will write the compiled PDF.
### Note, this should be the same directory as the input paper.md
name: Compile FrEDI Data
on: [push]
# on:
# push:
# inputs:
# repo_url:
# description: FrEDI repo URL
# required: true
# default:
# update:
# type: choice
# description: Update sysdata.rda
# options:
# - no
# - yes
jobs:
compile_data:
runs-on: ubuntu-latest
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
name: Process Data
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup R
uses: r-lib/actions/setup-r@v2
- name: Setup R package dependencies
uses: r-lib/actions/setup-r-dependencies@v2
with:
cache: true
cache-version: 1
packages: |
any::tidyverse
any::remotes
any::openxlsx
any::devtools
- name: Install FrEDI
run: |
Rscript -e '
require(remotes)
require(devtools)
install_github(
repo = "https://github.com/USEPA/FrEDI",
subdir = "FrEDI",
ref = "main",
type = "source",
repos = getOption("repos"),
upgrade = "never",
force = TRUE
)'
- name: Run createsystemData
run: |
Rscript -e 'source("./scripts/createSystemData_main.R")'
- name: Upload Tests
uses: actions/upload-artifact@v3
with:
name: Data
path: |
./data_tests/
./data/tmp_sysdata.rda