Skip to content
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
25 changes: 25 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: R Tests

on:
push:
pull_request:

jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: r-lib/actions/setup-r@v2
with:
use-public-rspm: true
- name: Install dependencies
shell: Rscript {0}
run: |
install.packages(c(
"testthat", "tidyverse", "rstatix", "ggstatsplot", "ggsignif",
"see", "ggpmisc", "writexl", "readxl", "emoa", "effectsize",
"easystats"
Comment on lines +15 to +21

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Install curl before running tests

The workflow step at lines 15‑21 only installs a handful of CRAN packages before running the suite, but the helper sets options(rcode.auto_install = FALSE) so tests rely entirely on the packages preinstalled here. The new basic utility helpers behave test (tests/testthat/test_r_functionality.R:97‑99) stubs curl::has_internet via with_mock. On a clean runner where the curl package isn’t already available (it’s not a recommended/base package), referencing curl::has_internet fails before the mock is applied, so the tests abort and the workflow can never turn green. Please add curl (and any other packages referenced directly in the tests) to this install.packages list so CI reliably succeeds.

Useful? React with 👍 / 👎.

))
- name: Run tests
run: |
Rscript -e 'testthat::test_dir("tests/testthat", reporter = "summary")'
Loading
Loading