Skip to content

Commit

Permalink
Test render in a dedicated workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Bisaloo committed Dec 12, 2023
1 parent 499787c commit 0f814a9
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 17 deletions.
45 changes: 45 additions & 0 deletions .github/workflows/test-reports.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
# Workflow derived from https://github.com/r-lib/actions/tree/v2/examples
# Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help
on:
push:
branches: [main, master]
paths:
- 'inst/**'
pull_request:
branches: [main, master]
paths:
- 'inst/**'

name: test reports

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
test-reports:
runs-on: ubuntu-latest
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v3
- uses: r-lib/actions/setup-pandoc@v2
- uses: r-lib/actions/setup-r@v2
with:
use-public-rspm: true
- uses: r-lib/actions/setup-r-dependencies@v2
with:
extra-packages:
sodium # it would be good to automatically identify system dependencies in the future
- run: |
library(episoap)
for (tp in list_templates()) {
rmarkdown::render(
system.file("rmarkdown", "templates", tp, "skeleton", "skeleton.Rmd",
package = "episoap"
),
output_file = tempfile(),
quiet = TRUE
)
}
shell: Rscript {0}
17 changes: 0 additions & 17 deletions tests/testthat/test-render_templates.R

This file was deleted.

0 comments on commit 0f814a9

Please sign in to comment.