Skip to content

Merge pull request #57 from UW-Madison-DSI/enhancements #2

Merge pull request #57 from UW-Madison-DSI/enhancements

Merge pull request #57 from UW-Madison-DSI/enhancements #2

Workflow file for this run

name: R-testthat
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up R
uses: r-lib/actions/setup-r@v2
with:
r-version: "4.1" # or any version you need
- name: Install dependencies
run: |
Rscript -e 'install.packages("devtools")'
Rscript -e 'devtools::install_deps(dependencies = TRUE)'
- name: Run testthat tests
run: |
Rscript -e 'library(testthat); test_dir("tests/testthat")'