Skip to content

REFACTOR- ci cd workflow #3

REFACTOR- ci cd workflow

REFACTOR- ci cd workflow #3

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" # Specify the R version needed
- name: Install dependencies
run: |
Rscript install_dependencies.R # Runs the custom dependency script
- name: Run testthat tests
run: |
Rscript -e 'library(testthat); test_dir("tests/testthat")'