Skip to content

Commit

Permalink
ci: use setup-r-dependencies action for R packages
Browse files Browse the repository at this point in the history
uses caching, it should speed up the runtime
  • Loading branch information
kelly-sovacool committed Nov 22, 2023
1 parent 250fcca commit 76cebd3
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 9 deletions.
8 changes: 3 additions & 5 deletions .github/workflows/quarto-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,16 +30,14 @@ jobs:

- name: Setup R
uses: r-lib/actions/setup-r@v2
- uses: r-lib/actions/setup-r-dependencies@v2
with:
working-direcotry: docs/

- name: Install Python packages
run: |
pip install --upgrade pip -r docs/requirements.txt
- name: Install R packages
shell: Rscript {0}
run: |
install.packages(c('dplyr', 'glue', 'here', 'knitr', 'rmarkdown', 'tidyr', 'yaml'))
- name: prerender
run: |
python docs/create-listings.py
Expand Down
7 changes: 3 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -312,13 +312,12 @@ jobs:
- uses: quarto-dev/quarto-actions/setup@v2
- uses: actions/setup-python@v3
- uses: r-lib/actions/setup-r@v2
- uses: r-lib/actions/setup-r-dependencies@v2
with:
working-direcotry: docs/
- name: Install Python packages
run: |
pip install --upgrade pip -r docs/requirements.txt
- name: Install R packages
shell: Rscript {0}
run: |
install.packages(c('dplyr', 'glue', 'here', 'knitr', 'rmarkdown', 'tidyr', 'yaml'))
- name: prerender
run: |
python docs/create-listings.py
Expand Down
10 changes: 10 additions & 0 deletions docs/DESCRIPTION
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
Depends:
- R (>= 4.0.0)
Imports:
- dplyr
- glue
- here
- knitr
- rmarkdown
- tidyr
- yaml

0 comments on commit 76cebd3

Please sign in to comment.