From fb2c6eefcbe6e53b2e3de7f7f4d641dd242e329d Mon Sep 17 00:00:00 2001 From: Pakillo Date: Sun, 13 Feb 2022 01:21:40 +0100 Subject: [PATCH] use codecov --- .Rbuildignore | 1 + DESCRIPTION | 1 + README.Rmd | 1 + codecov.yml | 14 ++++++++++++++ 4 files changed, 17 insertions(+) create mode 100644 codecov.yml diff --git a/.Rbuildignore b/.Rbuildignore index 58b293e..67a15b7 100644 --- a/.Rbuildignore +++ b/.Rbuildignore @@ -12,3 +12,4 @@ test_nocite.Rmd ^_pkgdown\.yml$ ^docs$ ^pkgdown$ +^codecov\.yml$ diff --git a/DESCRIPTION b/DESCRIPTION index 180f1b3..301fa6b 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -22,6 +22,7 @@ Imports: rmarkdown, utils Suggests: + covr, rstudioapi, testthat (>= 3.0.0) URL: https://pakillo.github.io/grateful diff --git a/README.Rmd b/README.Rmd index 42e4a8b..57474bd 100644 --- a/README.Rmd +++ b/README.Rmd @@ -16,6 +16,7 @@ knitr::opts_chunk$set( [![R-CMD-check](https://github.com/Pakillo/grateful/workflows/R-CMD-check/badge.svg)](https://github.com/Pakillo/grateful/actions) +[![Codecov test coverage](https://codecov.io/gh/Pakillo/grateful/branch/master/graph/badge.svg)](https://app.codecov.io/gh/Pakillo/grateful?branch=master) The goal of **grateful** is to make it very easy to cite R and the R packages used in any analyses, so that package authors receive their deserved credit. By calling a single function, **grateful** will scan the project for R packages used and generate a BibTeX file containing all citations for those packages. diff --git a/codecov.yml b/codecov.yml new file mode 100644 index 0000000..04c5585 --- /dev/null +++ b/codecov.yml @@ -0,0 +1,14 @@ +comment: false + +coverage: + status: + project: + default: + target: auto + threshold: 1% + informational: true + patch: + default: + target: auto + threshold: 1% + informational: true