diff --git a/.github/workflows/check-test-warnings.yaml b/.github/workflows/check-test-warnings.yaml index 46af9ef4..707d1081 100644 --- a/.github/workflows/check-test-warnings.yaml +++ b/.github/workflows/check-test-warnings.yaml @@ -4,10 +4,6 @@ on: 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-test-warnings @@ -28,13 +24,19 @@ jobs: - uses: r-lib/actions/setup-r-dependencies@v2 with: pak-version: devel - upgrade: "TRUE" + upgrade: 'TRUE' extra-packages: | local::. - any::devtools + needs: check - name: Run Tests run: | - options(crayon.enabled = TRUE, warn = 2L) - devtools::test() + options(crayon.enabled = TRUE) + pkgload::load_all() + 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} diff --git a/CITATION.cff b/CITATION.cff index 75c500d5..6b828f92 100644 --- a/CITATION.cff +++ b/CITATION.cff @@ -6,7 +6,7 @@ cff-version: 1.2.0 message: 'To cite package "statsExpressions" in publications use:' type: software -license: GPL-3.0-only +license: MIT title: 'statsExpressions: Tidy Dataframes and Expressions with Statistical Details' version: 1.5.4.9000 doi: 10.21105/joss.03236 diff --git a/codemeta.json b/codemeta.json index b9e482dc..bc9560f9 100644 --- a/codemeta.json +++ b/codemeta.json @@ -7,7 +7,7 @@ "relatedLink": ["https://indrajeetpatil.github.io/statsExpressions/", "https://CRAN.R-project.org/package=statsExpressions"], "codeRepository": "https://github.com/IndrajeetPatil/statsExpressions", "issueTracker": "https://github.com/IndrajeetPatil/statsExpressions/issues", - "license": "https://spdx.org/licenses/GPL-3.0", + "license": "https://spdx.org/licenses/MIT", "version": "1.5.4.9000", "programmingLanguage": { "@type": "ComputerLanguage", @@ -438,7 +438,7 @@ }, "SystemRequirements": null }, - "fileSize": "4135.191KB", + "fileSize": "4135.221KB", "citation": [ { "@type": "ScholarlyArticle", diff --git a/pkgdown/_pkgdown.yml b/pkgdown/_pkgdown.yml index f34da1d4..c6c64403 100644 --- a/pkgdown/_pkgdown.yml +++ b/pkgdown/_pkgdown.yml @@ -4,12 +4,9 @@ authors: Indrajeet Patil: href: https://sites.google.com/site/indrajeetspatilmorality/ -home: - sidebar: - structure: [links, license, community, citation, authors, dev, toc] - template: bootstrap: 5 + light-switch: true # includes: # in_header: | #