Skip to content

Commit

Permalink
v2.0.5.9044
Browse files Browse the repository at this point in the history
* ci: Add GitHub Action test-coverage
* docs: ReadMe, Add codecov badge
* docs: ReadMe, Add codefactor badge
  • Loading branch information
leppott committed Dec 26, 2020
1 parent 9061510 commit d2bff4d
Show file tree
Hide file tree
Showing 8 changed files with 77 additions and 10 deletions.
48 changes: 48 additions & 0 deletions .github/workflows/test-coverage.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
on:
push:
branches:
- main
- master
pull_request:
branches:
- main
- master

name: test-coverage

jobs:
test-coverage:
runs-on: macOS-latest
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v2

- uses: r-lib/actions/setup-r@v1

- uses: r-lib/actions/setup-pandoc@v1

- name: Query dependencies
run: |
install.packages('remotes')
saveRDS(remotes::dev_package_deps(dependencies = TRUE), ".github/depends.Rds", version = 2)
writeLines(sprintf("R-%i.%i", getRversion()$major, getRversion()$minor), ".github/R-version")
shell: Rscript {0}

- name: Cache R packages
uses: actions/cache@v2
with:
path: ${{ env.R_LIBS_USER }}
key: ${{ runner.os }}-${{ hashFiles('.github/R-version') }}-1-${{ hashFiles('.github/depends.Rds') }}
restore-keys: ${{ runner.os }}-${{ hashFiles('.github/R-version') }}-1-

- name: Install dependencies
run: |
install.packages(c("remotes"))
remotes::install_deps(dependencies = TRUE)
remotes::install_cran("covr")
shell: Rscript {0}

- name: Test coverage
run: covr::codecov()
shell: Rscript {0}
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: ContDataQC
Title: Quality Control (QC) of Continous Monitoring Data
Version: 2.0.5.9043
Version: 2.0.5.9044
Authors@R: c(
person("Erik W", "Leppo", email="[email protected]",role=c("aut","cre")),
person("Ann","Roseberry Lincoln", role="ctb"),
Expand Down
10 changes: 9 additions & 1 deletion NEWS
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ NEWS-ContDataQC

<!-- NEWS.md is generated from NEWS.Rmd. Please edit that file -->

#> Last Update: 2020-12-25 20:00:48
#> Last Update: 2020-12-25 20:07:33

# Planned Updates

Expand Down Expand Up @@ -37,6 +37,14 @@ NEWS-ContDataQC

# Version History

## v2.0.5.9044

2020-12-25

- ci: Add GitHub Action test-coverage
- docs: ReadMe, Add codecov badge
- docs: ReadMe, Add codefactor badge

## v2.0.5.9043

2020-12-25
Expand Down
7 changes: 7 additions & 0 deletions NEWS.rmd
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,13 @@ cat(paste0("Last Update: ",Sys.time()))

# Version History

## v2.0.5.9044
2020-12-25

* ci: Add GitHub Action test-coverage
* docs: ReadMe, Add codecov badge
* docs: ReadMe, Add codefactor badge

## v2.0.5.9043
2020-12-25

Expand Down
4 changes: 3 additions & 1 deletion README.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,11 @@ Quality control checks on continuous data. Example data is from a HOBO data log
Badges
-----------
[![Maintenance](https://img.shields.io/badge/Maintained%3F-yes-green.svg)](https://GitHub.com/leppott/ContDataQC/graphs/commit-activity)
[![](https://img.shields.io/badge/lifecycle-stable-green.svg)](https://www.tidyverse.org/lifecycle/#stable)
[![lifecycle](https://img.shields.io/badge/lifecycle-stable-green.svg)](https://www.tidyverse.org/lifecycle/#stable)
[![GitHub license](https://img.shields.io/github/license/leppott/ContDataQC.svg)](https://github.com/leppott/ContDataQC/blob/master/LICENSE)

[![CodeFactor](https://www.codefactor.io/repository/github/leppott/ContDataQC/badge)](https://www.codefactor.io/repository/github/leppott/ContDataQC)
[![codecov](https://codecov.io/gh/leppott/ContDataQC/branch/master/graph/badge.svg)](https://codecov.io/gh/leppott/ContDataQC)
[![R-CMD-check](https://github.com/leppott/ContDataQC/workflows/R-CMD-check/badge.svg)](https://github.com/leppott/ContDataQC/actions)

[![GitHub issues](https://img.shields.io/github/issues/leppott/ContDataQC.svg)](https://GitHub.com/leppott/ContDataQC/issues/)
Expand Down
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ README-ContDataQC

<!-- README.md is generated from README.Rmd. Please edit that file -->

#> Last Update: 2020-12-25 19:59:34
#> Last Update: 2020-12-25 20:07:06

# ContDataQC

Expand All @@ -13,10 +13,12 @@ data logger with 30 minute intervals.
## Badges

[![Maintenance](https://img.shields.io/badge/Maintained%3F-yes-green.svg)](https://GitHub.com/leppott/ContDataQC/graphs/commit-activity)
[![](https://img.shields.io/badge/lifecycle-stable-green.svg)](https://www.tidyverse.org/lifecycle/#stable)
[![lifecycle](https://img.shields.io/badge/lifecycle-stable-green.svg)](https://www.tidyverse.org/lifecycle/#stable)
[![GitHub
license](https://img.shields.io/github/license/leppott/ContDataQC.svg)](https://github.com/leppott/ContDataQC/blob/master/LICENSE)

[![CodeFactor](https://www.codefactor.io/repository/github/leppott/ContDataQC/badge)](https://www.codefactor.io/repository/github/leppott/ContDataQC)
[![codecov](https://codecov.io/gh/leppott/ContDataQC/branch/master/graph/badge.svg)](https://codecov.io/gh/leppott/ContDataQC)
[![R-CMD-check](https://github.com/leppott/ContDataQC/workflows/R-CMD-check/badge.svg)](https://github.com/leppott/ContDataQC/actions)

[![GitHub
Expand Down
2 changes: 1 addition & 1 deletion inst/extdata/ContDataQC_LibraryCreation.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ Can make some badges dynamic, static ones below
[![Github all releases](https://img.shields.io/github/downloads/leppott/MBSStools/total.svg)](https://GitHub.com/leppott/MBSStools/releases/)

```{r}
pkg_GH <- "leppott/BioMonTools"
pkg_GH <- "leppott/ContDataQC"
pkg_lic <- "MIT"
# GitHub Action, CI
Expand Down
8 changes: 4 additions & 4 deletions inst/extdata/ContDataQC_LibraryCreation.nb.html

Large diffs are not rendered by default.

0 comments on commit d2bff4d

Please sign in to comment.