Skip to content

Commit

Permalink
220927: reinstated code coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
AnestisTouloumis committed Sep 27, 2022
1 parent e1a1784 commit ef9b7e4
Show file tree
Hide file tree
Showing 5 changed files with 37 additions and 3 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/test-coverage.yaml
Original file line number Diff line number Diff line change
@@ -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}
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@ coverage:
default:
target: auto
threshold: 1%
informational: true
patch:
default:
target: auto
threshold: 1%
informational: true
3 changes: 2 additions & 1 deletion inst/NEWS.Rd
Original file line number Diff line number Diff line change
@@ -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}.}
}
}
}
Expand Down

0 comments on commit ef9b7e4

Please sign in to comment.