Skip to content

Commit

Permalink
Merge branch 'main' into rm-line-breaks-between-funs
Browse files Browse the repository at this point in the history
  • Loading branch information
IndrajeetPatil authored Nov 30, 2024
2 parents ab6cb64 + 59c3d34 commit 62c29dd
Show file tree
Hide file tree
Showing 3 changed files with 48 additions and 46 deletions.
42 changes: 0 additions & 42 deletions .github/workflows/check-all-examples.yaml

This file was deleted.

48 changes: 48 additions & 0 deletions .github/workflows/check-no-warnings.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
# execute all examples and tests with warnings turned into errors to look for new warnings
on:
push:
branches: [main, master]
pull_request:
branches: [main, master]

name: check-no-warnings

jobs:
check-no-warnings:
runs-on: ubuntu-latest
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}

steps:
- uses: actions/checkout@v4

- 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: |
any::devtools
local::.
- name: Run examples
run: |
options(crayon.enabled = TRUE, warn = 2L)
devtools::run_examples(fresh = TRUE, run_dontrun = TRUE, run_donttest = TRUE)
shell: Rscript {0}

- name: Run Tests
run: |
options(crayon.enabled = TRUE)
pkgload::load_all()
# this workaround needed to play nicely with parallel testing
# see: https://github.com/r-lib/testthat/issues/1912
test_script_paths <- testthat::find_test_scripts("tests/testthat")
test_with_warning_as_error <- function(path) {
withr::local_options(list(warn = 2L))
testthat::test_file(path, stop_on_failure = TRUE, stop_on_warning = TRUE)
}
purrr::walk(test_script_paths, test_with_warning_as_error)
shell: Rscript {0}
4 changes: 0 additions & 4 deletions inst/WORDLIST
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ bootswatch
BugReports
bXj
cancelling
cff
ci
cli
CMD
Expand All @@ -29,15 +28,13 @@ counterpair
coventions
cpp
cre
ctb
cyclocomp
cynkra
dec
dependabot
desc
devtools
dir
docsearch
dont
dontrun
dontshow
Expand Down Expand Up @@ -102,7 +99,6 @@ linters
lintr
lorenz
lorenzwalthert
macOS
magrittr
mav
md
Expand Down

0 comments on commit 62c29dd

Please # to comment.