Skip to content

Commit

Permalink
add coverage to github workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
zkamvar committed Sep 7, 2020
1 parent d920cf3 commit a9e81a2
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 15 deletions.
21 changes: 13 additions & 8 deletions .github/workflows/R-CMD-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,14 @@ jobs:
fail-fast: false
matrix:
config:
- {os: macOS-latest, r: 'release'}
- {os: windows-latest, r: 'release'}
- {os: windows-latest, r: '3.6'}
- {os: ubuntu-16.04, r: 'devel', rspm: "https://packagemanager.rstudio.com/cran/__linux__/xenial/latest", http-user-agent: "R/4.0.0 (ubuntu-16.04) R (4.0.0 x86_64-pc-linux-gnu x86_64 linux-gnu) on GitHub Actions" }
- {os: ubuntu-16.04, r: 'release', rspm: "https://packagemanager.rstudio.com/cran/__linux__/xenial/latest"}
- {os: ubuntu-16.04, r: 'oldrel', rspm: "https://packagemanager.rstudio.com/cran/__linux__/xenial/latest"}
- {os: ubuntu-16.04, r: '3.5', rspm: "https://packagemanager.rstudio.com/cran/__linux__/xenial/latest"}
- {os: ubuntu-16.04, r: '3.4', rspm: "https://packagemanager.rstudio.com/cran/__linux__/xenial/latest"}
- {os: macOS-latest, cov: 'true', r: 'release'}
- {os: windows-latest,cov: 'false', r: 'release'}
- {os: windows-latest,cov: 'false', r: '3.6'}
- {os: ubuntu-16.04, cov: 'false', r: 'devel', rspm: "https://packagemanager.rstudio.com/cran/__linux__/xenial/latest", http-user-agent: "R/4.0.0 (ubuntu-16.04) R (4.0.0 x86_64-pc-linux-gnu x86_64 linux-gnu) on GitHub Actions" }
- {os: ubuntu-16.04, cov: 'false', r: 'release', rspm: "https://packagemanager.rstudio.com/cran/__linux__/xenial/latest"}
- {os: ubuntu-16.04, cov: 'false', r: 'oldrel', rspm: "https://packagemanager.rstudio.com/cran/__linux__/xenial/latest"}
- {os: ubuntu-16.04, cov: 'false', r: '3.5', rspm: "https://packagemanager.rstudio.com/cran/__linux__/xenial/latest"}
- {os: ubuntu-16.04, cov: 'false', r: '3.4', rspm: "https://packagemanager.rstudio.com/cran/__linux__/xenial/latest"}

env:
R_REMOTES_NO_ERRORS_FROM_WARNINGS: true
Expand Down Expand Up @@ -95,6 +95,11 @@ jobs:
run: find check -name 'testthat.Rout*' -exec cat '{}' \; || true
shell: bash

- name: Cover
if: matrix.config.cov == 'true'
run: covr::codecov()
shell: Rscript {0}

- name: Upload check results
if: failure()
uses: actions/upload-artifact@main
Expand Down
2 changes: 1 addition & 1 deletion R/find_breaks.R
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#' Automatically calculate breaks for a number
#'
#' @param n a number to calcluate breaks for
#' @param breaks the maximum number of segements you want to have
#' @param breaks the maximum number of segments you want to have
#' @param snap the number defining where to snap to the nearest factor
#' @param ceiling if `TRUE`, n is included in the breaks
#'
Expand Down
2 changes: 0 additions & 2 deletions README.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@ knitr::opts_chunk$set(
<!-- badges: start -->
[![Lifecycle: experimental](https://img.shields.io/badge/lifecycle-experimental-orange.svg)](https://www.tidyverse.org/lifecycle/#experimental)
[![CRAN status](https://www.r-pkg.org/badges/version/epikit)](https://CRAN.R-project.org/package=epikit)
[![Appveyor build status](https://ci.appveyor.com/api/projects/status/gqx0kvytrrd5elbg?svg=true)](https://ci.appveyor.com/project/zkamvar/epikit)
[![Travis build status](https://travis-ci.org/R4EPI/epikit.svg?branch=master)](https://travis-ci.org/R4EPI/epikit)
[![Codecov test coverage](https://codecov.io/gh/R4EPI/epikit/branch/master/graph/badge.svg)](https://codecov.io/gh/R4EPI/epikit?branch=master)
[![R build status](https://github.com/R4EPI/epikit/workflows/R-CMD-check/badge.svg)](https://github.com/R4EPI/epikit/actions)
<!-- badges: end -->
Expand Down
3 changes: 0 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,6 @@ epikit
experimental](https://img.shields.io/badge/lifecycle-experimental-orange.svg)](https://www.tidyverse.org/lifecycle/#experimental)
[![CRAN
status](https://www.r-pkg.org/badges/version/epikit)](https://CRAN.R-project.org/package=epikit)
[![Appveyor build
status](https://ci.appveyor.com/api/projects/status/gqx0kvytrrd5elbg?svg=true)](https://ci.appveyor.com/project/zkamvar/epikit)
[![Travis build
status](https://travis-ci.org/R4EPI/epikit.svg?branch=master)](https://travis-ci.org/R4EPI/epikit)
[![Codecov test
coverage](https://codecov.io/gh/R4EPI/epikit/branch/master/graph/badge.svg)](https://codecov.io/gh/R4EPI/epikit?branch=master)
Expand Down
2 changes: 1 addition & 1 deletion man/find_breaks.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit a9e81a2

Please sign in to comment.