Skip to content

Commit

Permalink
Fix test warnings workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
IndrajeetPatil committed May 26, 2024
1 parent cb51995 commit 705bd51
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 15 deletions.
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

0 comments on commit 705bd51

Please sign in to comment.