From 626176481d4f79cc6875aa02c4080919dee94dfc Mon Sep 17 00:00:00 2001 From: Andreas Brandmaier Date: Sun, 24 Mar 2024 13:38:31 +0100 Subject: [PATCH] sketch for testthat testing --- .github/workflows/R-tests.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/R-tests.yml diff --git a/.github/workflows/R-tests.yml b/.github/workflows/R-tests.yml new file mode 100644 index 0000000..5904a80 --- /dev/null +++ b/.github/workflows/R-tests.yml @@ -0,0 +1,25 @@ +on: + workflow_dispatch + +name: Tests + +jobs: + document: + name: run tests + runs-on: ubuntu-latest + env: + GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} + steps: + - uses: actions/checkout@v3 + - uses: r-lib/actions/setup-r@v2 + with: + use-public-rspm: true + + - uses: r-lib/actions/setup-r-dependencies@v2 + with: + extra-packages: any::testthat + needs: pr-document + + - name: run test + run: testthat::test_dir("tests/testthat/") + shell: Rscript {0}