-
Notifications
You must be signed in to change notification settings - Fork 62
53 lines (41 loc) · 1.21 KB
/
pull_request_action.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
on:
pull_request:
branches: main
name: Test Rendering
jobs:
build-deploy:
runs-on: ubuntu-latest
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
R_KEEP_PKG_SOURCE: yes
steps:
- uses: actions/checkout@v4
- name: Install Quarto CLI
uses: quarto-dev/quarto-actions/setup@v2
- uses: actions/setup-python@v5
with:
python-version: '3.12'
cache: 'pip' # caching pip dependencies
- run: pip install -r requirements.txt
- name: Install libcurl
run: |
sudo apt-get update
sudo apt-get install -y libcurl4-openssl-dev
- name: Put pandoc in PATH
run: |
mkdir -p ~/.local/bin
ln -s $(dirname $(readlink -f $(which quarto)))"/pandoc" ~/.local/bin/pandoc
shell: bash
- name: Set up R
uses: r-lib/actions/setup-r@v2
with:
# http-user-agent: ${{ matrix.config.http-user-agent }}
use-public-rspm: true
r-version: 'renv'
- name: Set up renv
uses: r-lib/actions/setup-renv@v2
with:
cache-version: 3
- name: Build site 🔧
run: |
quarto render