From ef9b7e40956cec31d2d7fdeb89fd653a4a24e20a Mon Sep 17 00:00:00 2001 From: Anestis Touloumis Date: Tue, 27 Sep 2022 16:29:22 +0100 Subject: [PATCH] 220927: reinstated code coverage --- .github/workflows/test-coverage.yaml | 31 ++++++++++++++++++++++++++++ DESCRIPTION | 2 +- README.md | 2 +- codecov.yml | 2 ++ inst/NEWS.Rd | 3 ++- 5 files changed, 37 insertions(+), 3 deletions(-) create mode 100644 .github/workflows/test-coverage.yaml diff --git a/.github/workflows/test-coverage.yaml b/.github/workflows/test-coverage.yaml new file mode 100644 index 0000000..adecdc7 --- /dev/null +++ b/.github/workflows/test-coverage.yaml @@ -0,0 +1,31 @@ +# Workflow derived from https://github.com/r-lib/actions/tree/v2/examples +# Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help +on: + push: + branches: [main, master] + pull_request: + branches: [main, master] + +name: test-coverage + +jobs: + test-coverage: + runs-on: ubuntu-latest + env: + GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} + + steps: + - uses: actions/checkout@v2 + + - uses: r-lib/actions/setup-r@v2 + with: + use-public-rspm: true + + - uses: r-lib/actions/setup-r-dependencies@v2 + with: + extra-packages: any::covr + needs: coverage + + - name: Test coverage + run: covr::codecov(quiet = FALSE, type = "all") + shell: Rscript {0} diff --git a/DESCRIPTION b/DESCRIPTION index 32bcfd8..28f3936 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -2,7 +2,7 @@ Package: SimCorMultRes Type: Package Title: Simulates Correlated Multinomial Responses Description: Simulates correlated multinomial responses conditional on a marginal model specification. -Version: 1.8.1 +Version: 1.8.2 Depends: R(>= 2.15.0) Imports: evd, diff --git a/README.md b/README.md index 3cd8dfc..c052559 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ # SimCorMultRes: Simulates Correlated Multinomial Responses [![Github -version](https://img.shields.io/badge/GitHub%20-1.8.1-orange.svg)](%22commits/master%22) +version](https://img.shields.io/badge/GitHub%20-1.8.2-orange.svg)](%22commits/master%22) [![R-CMD-check](https://github.com/AnestisTouloumis/SimCorMultRes/workflows/R-CMD-check/badge.svg)](https://github.com/AnestisTouloumis/SimCorMultRes/actions) [![Project Status: Active The project has reached a stable, usable state and is being actively diff --git a/codecov.yml b/codecov.yml index 8f36b6c..04c5585 100644 --- a/codecov.yml +++ b/codecov.yml @@ -6,7 +6,9 @@ coverage: default: target: auto threshold: 1% + informational: true patch: default: target: auto threshold: 1% + informational: true diff --git a/inst/NEWS.Rd b/inst/NEWS.Rd index 88dcc48..48ca205 100644 --- a/inst/NEWS.Rd +++ b/inst/NEWS.Rd @@ -1,12 +1,13 @@ \name{NEWS} \title{NEWS file for the \pkg{SimCorMultRes} package} -\section{Changes in Version 1.8.1 (2022-09-15)}{ +\section{Changes in Version 1.8.2 (2022-09-27)}{ \subsection{MINOR CHANGES}{ \itemize{ \item{Added R journal paper as vignette.} \item{Improved README.} \item{Improved vignette.} + \item{Reinstated code coverage using \pkg{covr}.} } } }