Skip to content

Commit

Permalink
Update r-cmd-check.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
mariaob1201 authored Nov 4, 2024
1 parent 83d7edb commit 916295a
Showing 1 changed file with 4 additions and 11 deletions.
15 changes: 4 additions & 11 deletions .github/workflows/r-cmd-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ name: R-testthat
on:
push:
branches: [main]
pull_request:
branches: [main]

jobs:
test:
Expand All @@ -13,16 +11,11 @@ jobs:
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
- name: Install additional dependencies
run: |
Rscript install_dependencies.R # Runs the custom dependency script
- name: Run testthat tests
Rscript install_dependencies.R # Custom script for any extra packages
- name: Run tests with testthat
run: |
Rscript -e 'library(testthat); test_dir("tests/testthat")'

0 comments on commit 916295a

Please sign in to comment.