Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix test warnings workflow #283

Merged
merged 1 commit into from
May 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 10 additions & 8 deletions .github/workflows/check-test-warnings.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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}
2 changes: 1 addition & 1 deletion CITATION.cff
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions codemeta.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -438,7 +438,7 @@
},
"SystemRequirements": null
},
"fileSize": "4135.191KB",
"fileSize": "4135.221KB",
"citation": [
{
"@type": "ScholarlyArticle",
Expand Down
5 changes: 1 addition & 4 deletions pkgdown/_pkgdown.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
# <script defer data-domain="indrajeetpatil.github.io/statsexpressions" src="https://plausible.io/js/plausible.js"></script>
Expand Down
Loading