Skip to content

Commit

Permalink
add setup-r-dependencies (#395)
Browse files Browse the repository at this point in the history
Related to
insightsengineering/nestdevs-tasks#65
Switch to setup-r-dependencies.
Added `teal.modules.hermes` for lookup-refs.

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
  • Loading branch information
vedhav and github-actions[bot] authored Dec 12, 2024
1 parent ed9523a commit d059ae3
Show file tree
Hide file tree
Showing 5 changed files with 143 additions and 2 deletions.
56 changes: 56 additions & 0 deletions .github/workflows/check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,20 @@ jobs:
_R_CHECK_CRAN_INCOMING_REMOTE_=false
_R_CHECK_EXAMPLE_TIMING_THRESHOLD_=10
additional-r-cmd-check-params: --as-cran
deps-installation-method: setup-r-dependencies
lookup-refs: |
insightsengineering/formatters
insightsengineering/rtables
insightsengineering/rtables.officer
insightsengineering/hermes
insightsengineering/teal
insightsengineering/teal.transform
insightsengineering/teal.code
insightsengineering/teal.data
insightsengineering/teal.logger
insightsengineering/teal.reporter
insightsengineering/teal.widgets
insightsengineering/teal.slice
r-cmd-non-cran:
name: R CMD Check (non-CRAN) 🧬
uses: insightsengineering/r.pkg.template/.github/workflows/build-check-install.yaml@main
Expand All @@ -40,6 +54,20 @@ jobs:
enforce-note-blocklist: true
concurrency-group: non-cran
unit-test-report-directory: unit-test-report-non-cran
deps-installation-method: setup-r-dependencies
lookup-refs: |
insightsengineering/formatters
insightsengineering/rtables
insightsengineering/rtables.officer
insightsengineering/hermes
insightsengineering/teal
insightsengineering/teal.transform
insightsengineering/teal.code
insightsengineering/teal.data
insightsengineering/teal.logger
insightsengineering/teal.reporter
insightsengineering/teal.widgets
insightsengineering/teal.slice
coverage:
name: Coverage 📔
uses: insightsengineering/r.pkg.template/.github/workflows/test-coverage.yaml@main
Expand All @@ -48,6 +76,20 @@ jobs:
with:
additional-env-vars: |
NOT_CRAN=true
deps-installation-method: setup-r-dependencies
lookup-refs: |
insightsengineering/formatters
insightsengineering/rtables
insightsengineering/rtables.officer
insightsengineering/hermes
insightsengineering/teal
insightsengineering/teal.transform
insightsengineering/teal.code
insightsengineering/teal.data
insightsengineering/teal.logger
insightsengineering/teal.reporter
insightsengineering/teal.widgets
insightsengineering/teal.slice
linter:
if: github.event_name != 'push'
name: SuperLinter 🦸‍♀️
Expand All @@ -59,6 +101,20 @@ jobs:
REPO_GITHUB_TOKEN: ${{ secrets.REPO_GITHUB_TOKEN }}
with:
auto-update: true
deps-installation-method: setup-r-dependencies
lookup-refs: |
insightsengineering/formatters
insightsengineering/rtables
insightsengineering/rtables.officer
insightsengineering/hermes
insightsengineering/teal
insightsengineering/teal.transform
insightsengineering/teal.code
insightsengineering/teal.data
insightsengineering/teal.logger
insightsengineering/teal.reporter
insightsengineering/teal.widgets
insightsengineering/teal.slice
gitleaks:
name: gitleaks 💧
uses: insightsengineering/r.pkg.template/.github/workflows/gitleaks.yaml@main
Expand Down
14 changes: 14 additions & 0 deletions .github/workflows/docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,17 @@ jobs:
with:
default-landing-page: latest-tag
additional-unit-test-report-directories: unit-test-report-non-cran
deps-installation-method: setup-r-dependencies
lookup-refs: |
insightsengineering/formatters
insightsengineering/rtables
insightsengineering/rtables.officer
insightsengineering/hermes
insightsengineering/teal
insightsengineering/teal.transform
insightsengineering/teal.code
insightsengineering/teal.data
insightsengineering/teal.logger
insightsengineering/teal.reporter
insightsengineering/teal.widgets
insightsengineering/teal.slice
43 changes: 43 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,20 @@ jobs:
with:
skip-r-cmd-check: true
skip-r-cmd-install: true
deps-installation-method: setup-r-dependencies
lookup-refs: |
insightsengineering/formatters
insightsengineering/rtables
insightsengineering/rtables.officer
insightsengineering/hermes
insightsengineering/teal
insightsengineering/teal.transform
insightsengineering/teal.code
insightsengineering/teal.data
insightsengineering/teal.logger
insightsengineering/teal.reporter
insightsengineering/teal.widgets
insightsengineering/teal.slice
docs:
name: Pkgdown Docs 📚
needs: release
Expand All @@ -25,12 +39,41 @@ jobs:
REPO_GITHUB_TOKEN: ${{ secrets.REPO_GITHUB_TOKEN }}
with:
default-landing-page: latest-tag
deps-installation-method: setup-r-dependencies
lookup-refs: |
insightsengineering/formatters
insightsengineering/rtables
insightsengineering/rtables.officer
insightsengineering/hermes
insightsengineering/teal
insightsengineering/teal.transform
insightsengineering/teal.code
insightsengineering/teal.data
insightsengineering/teal.logger
insightsengineering/teal.reporter
insightsengineering/teal.widgets
insightsengineering/teal.slice
validation:
name: R Package Validation report 📃
needs: release
uses: insightsengineering/r.pkg.template/.github/workflows/validation.yaml@main
secrets:
REPO_GITHUB_TOKEN: ${{ secrets.REPO_GITHUB_TOKEN }}
with:
deps-installation-method: setup-r-dependencies
lookup-refs: |
insightsengineering/formatters
insightsengineering/rtables
insightsengineering/rtables.officer
insightsengineering/hermes
insightsengineering/teal
insightsengineering/teal.transform
insightsengineering/teal.code
insightsengineering/teal.data
insightsengineering/teal.logger
insightsengineering/teal.reporter
insightsengineering/teal.widgets
insightsengineering/teal.slice
release:
name: Create release 🎉
uses: insightsengineering/r.pkg.template/.github/workflows/release.yaml@main
Expand Down
30 changes: 29 additions & 1 deletion .github/workflows/scheduled.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Scheduled 🕰️

on:
schedule:
- cron: '45 3 * * 0'
- cron: "45 3 * * 0"
workflow_dispatch:
inputs:
chosen-workflow:
Expand Down Expand Up @@ -56,6 +56,20 @@ jobs:
)
name: revdepcheck ↩️
uses: insightsengineering/r.pkg.template/.github/workflows/revdepcheck.yaml@main
with:
lookup-refs: |
insightsengineering/formatters
insightsengineering/rtables
insightsengineering/rtables.officer
insightsengineering/hermes
insightsengineering/teal
insightsengineering/teal.transform
insightsengineering/teal.code
insightsengineering/teal.data
insightsengineering/teal.logger
insightsengineering/teal.reporter
insightsengineering/teal.widgets
insightsengineering/teal.slice
rhub:
if: >
github.event_name == 'schedule' || (
Expand All @@ -64,3 +78,17 @@ jobs:
)
name: R-hub 🌐
uses: insightsengineering/r.pkg.template/.github/workflows/rhub.yaml@main
with:
lookup-refs: |
insightsengineering/formatters
insightsengineering/rtables
insightsengineering/rtables.officer
insightsengineering/hermes
insightsengineering/teal
insightsengineering/teal.transform
insightsengineering/teal.code
insightsengineering/teal.data
insightsengineering/teal.logger
insightsengineering/teal.reporter
insightsengineering/teal.widgets
insightsengineering/teal.slice
2 changes: 1 addition & 1 deletion man/sampleVarSpecServer.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit d059ae3

Please sign in to comment.