Update .gitea/workflows/r-test.yml
Some checks failed
CI Demo / build (push) Successful in 4s
Docker Test / docker-ops (push) Successful in 6s
.NET Test / dotnet-test (push) Successful in 47s
Go Test / go-test (push) Successful in 21s
Java Test / java-hello (push) Successful in 30s
Julia Test / julia-test (push) Successful in 22s
Kotlin Test / kotlin-hello (push) Successful in 39s
Node.js Test / nodejs-test (push) Successful in 17s
Notebook Test / nb-test (push) Successful in 12s
PHP Test / php-test (push) Successful in 36s
Python Test / python-hello (push) Successful in 4s
Rust Test / rust-test (push) Has been cancelled
Scala Test / scala-test (push) Has been cancelled
Swift Test / swift-hello (push) Has been cancelled
R tests / test (push) Has been cancelled

This commit is contained in:
2025-08-07 21:28:05 +00:00
parent e55e03542f
commit 30bc406e25

View File

@@ -1,19 +1,24 @@
name: R Test
on: [push]
name: R tests
on: [push, pull_request]
jobs:
r-cmdcheck:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up R
uses: r-lib/actions/setup-r@v2
with:
use-public-rspm: true # fast Linux binaries
- name: Install dependencies
run: |
Rscript -e 'install.packages(c("devtools","testthat"), repos="https://cloud.r-project.org")'
uses: r-lib/actions/setup-r-dependencies@v2
with:
extra-packages: any::testthat # or list others you need
cache-version: 1
- name: Run tests
shell: Rscript {0}
run: |
Rscript -e 'devtools::test()'
testthat::test_local()