Skip to content

add test workflow

add test workflow #1

Workflow file for this run

name: R-Package-Test
on:
push:
branches: [main, master]
pull_request:
branches: [main, master]
workflow_dispatch:
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Set up R
uses: r-lib/actions/setup-r@v2
- name: Install system dependencies
run: sudo apt-get install -y libcurl4-openssl-dev libssl-dev libxml2-dev
- name: Install R package dependencies
run: R -e "install.packages('devtools'); devtools::install_deps(dependencies = TRUE)"
- name: Run tests
run: R -e "devtools::test()"