-
-
Notifications
You must be signed in to change notification settings - Fork 28
43 lines (36 loc) · 1.15 KB
/
render-rmds.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: Test render notebooks
# Before merging notebooks, check that they render
on:
pull_request:
branches:
- master
paths:
- '**.Rmd'
- '!**-live.Rmd' # don't trigger for live-only changes
- '!**/exercise*.Rmd' # or exercise notebooks
- '!**/setup/**.Rmd' # or setup notebooks
- 'scripts/make-live.R'
- 'scripts/render-live.sh'
jobs:
test-render:
runs-on: ubuntu-latest
container:
image: ccdl/training_rstudio:edge
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Load 1Password secrets
uses: 1password/load-secrets-action@v2
with:
export-env: true
env:
OP_SERVICE_ACCOUNT_TOKEN: ${{ secrets.TRAINING_OP_SERVICE_ACCOUNT_TOKEN }}
AWS_ACCESS_KEY_ID: ${{ secrets.OP_TRAINING_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.OP_TRAINING_SECRET_ACCESS_KEY }}
- name: Download data from S3
env:
AWS_DEFAULT_REGION: us-east-1
run: |
aws s3 sync s3://ccdl-training-data/training-modules/ .
- name: Render notebooks
run: bash scripts/render-live.sh