-
Notifications
You must be signed in to change notification settings - Fork 0
59 lines (52 loc) · 1.28 KB
/
run-r.yaml
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
name: run an R script
on:
# push:
# branches:
# - "main"
# - "feat/adding-github-actions"
#schedule:
# - cron: '31 13 * * *'
workflow_dispatch:
jobs:
run_r_script:
defaults:
run:
shell: bash
name: 'Run r script'
runs-on: ubuntu-20.04
environment: RUN
env:
#OBJ_STORE_BUCKET: ${{ secrets.OBJ_STORE_BUCKET }}
#OBJ_STORE_SECRET: ${{ secrets.OBJ_STORE_SECRET }}
#OBJ_STORE_USER: ${{ secrets.OBJ_STORE_USER }}
#OBJ_STORE_HOST: ${{ secrets.OBJ_STORE_HOST }}
#WGRIB_UTILITY: /usr/local/bin/wgrib2
TEST: test
steps:
- uses: actions/checkout@v3
id: checkout
with:
fetch-depth: 0
- name: Setup R
uses: r-lib/actions/setup-r@v2
with:
r-version: 4.2.1
- id: verify r version
name: Install r dependencies
run: |
r --version
# - name: install r dependencies
# uses: r-lib/actions/setup-r-dependencies@v2
# with:
# cache-version: 2
# needs: |
# EBImage
# curl
- id: install-r-dependencies
name: Install r dependencies
run: Rscript InstallPackages.R
- id: run-the-r-script
name: Runs the r script
shell: bash
run: |
/usr/local/bin/Rscript Reanalysis.R