-
Notifications
You must be signed in to change notification settings - Fork 188
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add more GHA workflows: strict check, vignette warnings, spell check (#…
…829) * Add metadata GHA workflow * Apply automatic changes * update meta * Update metadata.yaml * Apply automatic changes * retrigger CI * Update metadata.yaml * Apply automatic changes * add schedules and error on changed lints * clean up lints in code for creating datasets * Update check-all-examples.yaml * Update check-all-examples.yaml * Create check-vignette-warnings.yaml * silence ggside warnings; update ggcoef snapshots * Apply automatic changes * needs devel easystats? * Apply automatic changes * revert snapshot changes * Apply automatic changes * fix vignette warning * Apply automatic changes * improve idiom for conditional evaluation * Apply automatic changes * remove missing values in ggsignif * Apply automatic changes * remove manova example * Apply automatic changes * use devel performance * Apply automatic changes * avoid unneeded computations * Apply automatic changes * add strict workflow * Apply automatic changes * remove metadata workflow [skip ci] * Update R-CMD-check-strict.yaml * bump purrr version * minor [skip ci] * add spell check workflow * minor [skip ci] * use svglite device closes #812 * dealing with more warnings * Apply automatic changes * Update DESCRIPTION * fix build issues * sigh; I give up * skip problematic chunk * Update faq.Rmd * Apply automatic changes * Update ggbetweenstats.Rmd * remove svglite for now Co-authored-by: IndrajeetPatil <[email protected]>
- Loading branch information
1 parent
46ce94b
commit ade608e
Showing
45 changed files
with
500 additions
and
328 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
on: | ||
pull_request: | ||
branches: [main, master] | ||
|
||
name: metadata | ||
|
||
jobs: | ||
metadata: | ||
runs-on: ubuntu-latest | ||
env: | ||
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- uses: r-lib/actions/setup-r@v2 | ||
with: | ||
use-public-rspm: true | ||
|
||
- uses: r-lib/actions/setup-r-dependencies@v2 | ||
with: | ||
pak-version: devel | ||
extra-packages: | | ||
local::. | ||
cboettig/codemeta | ||
ropensci/cffr | ||
- name: Generate codemeta metadata | ||
run: | | ||
options(crayon.enabled = TRUE) | ||
codemeta::write_codemeta() | ||
shell: Rscript {0} | ||
|
||
- name: Generate CFF metadata | ||
run: | | ||
options(crayon.enabled = TRUE) | ||
cffr::cff_write() | ||
shell: Rscript {0} | ||
|
||
- uses: stefanzweifel/git-auto-commit-action@v4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
# 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 | ||
# | ||
# R CMD Check will fail on NOTE. | ||
on: | ||
push: | ||
branches: [main, master] | ||
pull_request: | ||
branches: [main, master] | ||
schedule: | ||
# * is a special character in YAML so you have to quote this string | ||
# Trigger once a week at 00:00 on Sunday | ||
- cron: "0 0 * * SUN" | ||
|
||
name: R-CMD-check-strict | ||
|
||
jobs: | ||
R-CMD-check-strict: | ||
runs-on: ${{ matrix.config.os }} | ||
name: ${{ matrix.config.os }} (${{ matrix.config.r }}) | ||
|
||
strategy: | ||
fail-fast: false | ||
matrix: | ||
config: | ||
# CRAN does not provide macOS binaries for R-devel, so some packages | ||
# need to be built from source. To avoid that, use R-release. | ||
- { os: macos-latest, r: "release" } | ||
- { os: windows-latest, r: "devel" } | ||
- { os: ubuntu-latest, r: "devel" } | ||
|
||
env: | ||
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} | ||
R_KEEP_PKG_SOURCE: yes | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- uses: r-lib/actions/setup-pandoc@v2 | ||
with: | ||
pandoc-version: "2.19.2" | ||
|
||
- uses: r-lib/actions/setup-r@v2 | ||
with: | ||
r-version: ${{ matrix.config.r }} | ||
http-user-agent: "release" | ||
use-public-rspm: true | ||
|
||
- uses: r-lib/actions/setup-r-dependencies@v2 | ||
with: | ||
pak-version: devel | ||
needs: check | ||
extra-packages: | | ||
any::rcmdcheck | ||
- uses: r-lib/actions/check-r-package@v2 | ||
with: | ||
upload-snapshots: true | ||
upload-results: true | ||
error-on: '"note"' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
on: | ||
push: | ||
branches: [main, master] | ||
pull_request: | ||
branches: [main, master] | ||
schedule: | ||
# * is a special character in YAML so you have to quote this string | ||
# Trigger once a week at 00:00 on Sunday | ||
- cron: "0 0 * * SUN" | ||
|
||
name: check-spelling | ||
|
||
jobs: | ||
check-spelling: | ||
runs-on: ubuntu-latest | ||
env: | ||
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} | ||
R_KEEP_PKG_SOURCE: yes | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- uses: r-lib/actions/setup-pandoc@v2 | ||
with: | ||
pandoc-version: "2.19.2" | ||
|
||
- uses: r-lib/actions/setup-r@v2 | ||
with: | ||
r-version: "devel" | ||
http-user-agent: "release" | ||
use-public-rspm: true | ||
|
||
- uses: r-lib/actions/setup-r-dependencies@v2 | ||
with: | ||
pak-version: devel | ||
dependencies: '"hard"' | ||
extra-packages: | | ||
any::rcmdcheck | ||
any::spelling | ||
- name: Spell check | ||
run: | | ||
options(crayon.enabled = TRUE) | ||
spelling_mistakes <- spelling::spell_check_package() | ||
cli::cli_rule() | ||
if (length(spelling_mistakes$word) > 0L) { | ||
print(spelling_mistakes) | ||
cli::cli_abort("Spelling errors found. Either correct them or update `inst/WORDLIST` file.") | ||
} else { | ||
cli::cli_alert_success("No spelling errors found.") | ||
} | ||
cli::cli_rule() | ||
shell: Rscript {0} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
# Run vignettes with `options(warn = 2)` to fail on warnings | ||
on: | ||
push: | ||
branches: [main, master] | ||
pull_request: | ||
branches: [main, master] | ||
|
||
name: check-vignette-warnings | ||
|
||
jobs: | ||
check-vignette-warnings: | ||
runs-on: ubuntu-latest | ||
env: | ||
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- uses: r-lib/actions/setup-pandoc@v2 | ||
with: | ||
pandoc-version: "2.19.2" | ||
|
||
- uses: r-lib/actions/setup-r@v2 | ||
with: | ||
r-version: "devel" | ||
use-public-rspm: true | ||
|
||
- uses: r-lib/actions/setup-r-dependencies@v2 | ||
with: | ||
pak-version: devel | ||
extra-packages: | | ||
local::. | ||
- name: Build vignettes | ||
run: | | ||
# options(crayon.enabled = TRUE, warn = 2L) | ||
vignettes <- fs::dir_ls("vignettes/", glob = "*.Rmd", recurse = TRUE) | ||
purrr::walk(vignettes, rmarkdown::render) | ||
shell: Rscript {0} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.