-
Notifications
You must be signed in to change notification settings - Fork 0
55 lines (45 loc) · 1.38 KB
/
notebook_check_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
44
45
46
47
48
49
50
51
52
53
54
55
name: Execute R notebooks
on:
pull_request:
workflow_dispatch:
# run once a week
schedule:
- cron: "0 0 * * 0"
jobs:
build:
runs-on: ubuntu-latest
steps:
- id: checkout
uses: actions/checkout@v3
- id: python-setup
name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.11'
- id: install-juptyer
name: Install Juptyer
run: |
python -m pip install --upgrade pip
pip install jupyter
- id: r-setup
name: Set up R
uses: r-lib/actions/setup-r@v2
- id: r-dependencies
name: Install r dependencies
run: |
R -e 'install.packages("renv")'
R -e 'renv::restore()'
R -e 'install.packages("IRkernel")'
R -e 'IRkernel::installspec()'
- id: execute-bioscales
name: Execute bioscales notebook
run: |
jupyter nbconvert --execute --to notebook --inplace bioscales_biogeochemical_metadata/R/bioscales_metadata.ipynb
- id: execute-neon
name: Execute NEON metadata notebook
run: |
jupyter nbconvert --execute --to notebook --inplace NEON_soil_metadata/R/NEON_data_exploration.ipynb
- id: execute-taxonomic
name: Execute taxonomic metadata notebook
run: |
jupyter nbconvert --execute --to notebook --inplace taxonomic_dist_by_soil_layer/R/taxonomic_dist_soil_layer_R.ipynb