Skip to content

Commit

Permalink
update unit tests and test coverage"
Browse files Browse the repository at this point in the history
q

q;
  • Loading branch information
Zach Deane-Mayer committed Jun 25, 2024
1 parent fd13772 commit f8b0ed1
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 20 deletions.
24 changes: 6 additions & 18 deletions .github/workflows/r-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,24 +5,12 @@ on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Setup R
uses: r-lib/actions/setup-r@v2

- name: Install dependencies
uses: r-lib/actions/setup-r-dependencies@v2
- uses: actions/checkout@v4
- uses: r-lib/actions/setup-r@v2
- uses: r-lib/actions/setup-r-dependencies@v2
with:
extra-packages: any::roxygen2

- name: Run unit tests
run: make test

- name: Run R CMD CHECK
run: make check

- name: Run CRAN check
run: make check-cran
- run: make test
- run: make check
- run: make check-cran
5 changes: 3 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ all: install document test test-coverage check check-cran

# Install dependencies
install:
Rscript -e "if (!requireNamespace('devtools', quietly = TRUE)) install.packages('devtools')"
Rscript -e "devtools::install_deps()"
Rscript -e "devtools::install_dev_deps()"

Expand All @@ -16,11 +17,11 @@ document:

# Run unit tests
test:
Rscript -e "devtools::test()"
Rscript -e "devtools::test(stop_on_failure=TRUE)"

# Unit test coverage report
test-coverage:
Rscript -e "covr::coveralls()"
Rscript -e "devtools::test_coverage()"

# Run R CMD check
check: document
Expand Down

0 comments on commit f8b0ed1

Please sign in to comment.