removed travis and added coverage
This commit is contained in:
parent
1e74d6857e
commit
2d9b9ff631
|
@ -11,3 +11,4 @@
|
||||||
^examples$
|
^examples$
|
||||||
^\.github$
|
^\.github$
|
||||||
^LICENSE\.md$
|
^LICENSE\.md$
|
||||||
|
^codecov\.yml$
|
||||||
|
|
|
@ -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}
|
11
.travis.yml
11
.travis.yml
|
@ -1,11 +0,0 @@
|
||||||
# R for travis: see documentation at https://docs.travis-ci.com/user/languages/r
|
|
||||||
|
|
||||||
language: R
|
|
||||||
sudo: false
|
|
||||||
cache: packages
|
|
||||||
|
|
||||||
#before_cache: Rscript -e 'remotes::install_cran("pkgdown")'
|
|
||||||
#deploy:
|
|
||||||
# provider: script
|
|
||||||
# script: Rscript -e 'pkgdown::deploy_site_github()'
|
|
||||||
# skip_cleanup: true
|
|
|
@ -27,7 +27,8 @@ Suggests:
|
||||||
dplyr,
|
dplyr,
|
||||||
knitr,
|
knitr,
|
||||||
scales,
|
scales,
|
||||||
rmarkdown
|
rmarkdown,
|
||||||
|
covr
|
||||||
RoxygenNote: 7.1.1
|
RoxygenNote: 7.1.1
|
||||||
Roxygen: list(markdown = TRUE)
|
Roxygen: list(markdown = TRUE)
|
||||||
URL: https://github.com/dreamRs/apexcharter, https://dreamrs.github.io/apexcharter/
|
URL: https://github.com/dreamRs/apexcharter, https://dreamrs.github.io/apexcharter/
|
||||||
|
|
|
@ -5,9 +5,9 @@
|
||||||
<!-- badges: start -->
|
<!-- badges: start -->
|
||||||
[![version](http://www.r-pkg.org/badges/version/apexcharter)](https://CRAN.R-project.org/package=apexcharter)
|
[![version](http://www.r-pkg.org/badges/version/apexcharter)](https://CRAN.R-project.org/package=apexcharter)
|
||||||
[![cran checks](https://cranchecks.info/badges/worst/apexcharter)](https://cranchecks.info/pkgs/apexcharter)
|
[![cran checks](https://cranchecks.info/badges/worst/apexcharter)](https://cranchecks.info/pkgs/apexcharter)
|
||||||
[![Travis build status](https://travis-ci.org/dreamRs/apexcharter.svg?branch=master)](https://travis-ci.org/dreamRs/apexcharter)
|
|
||||||
[![Lifecycle: maturing](https://img.shields.io/badge/lifecycle-maturing-blue.svg)](https://www.tidyverse.org/lifecycle/#maturing)
|
[![Lifecycle: maturing](https://img.shields.io/badge/lifecycle-maturing-blue.svg)](https://www.tidyverse.org/lifecycle/#maturing)
|
||||||
[![R build status](https://github.com/dreamRs/apexcharter/workflows/R-CMD-check/badge.svg)](https://github.com/dreamRs/apexcharter/actions)
|
[![R build status](https://github.com/dreamRs/apexcharter/workflows/R-CMD-check/badge.svg)](https://github.com/dreamRs/apexcharter/actions)
|
||||||
|
[![Codecov test coverage](https://codecov.io/gh/dreamRs/apexcharter/branch/master/graph/badge.svg)](https://codecov.io/gh/dreamRs/apexcharter?branch=master)
|
||||||
<!-- badges: end -->
|
<!-- badges: end -->
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,14 @@
|
||||||
|
comment: false
|
||||||
|
|
||||||
|
coverage:
|
||||||
|
status:
|
||||||
|
project:
|
||||||
|
default:
|
||||||
|
target: auto
|
||||||
|
threshold: 1%
|
||||||
|
informational: true
|
||||||
|
patch:
|
||||||
|
default:
|
||||||
|
target: auto
|
||||||
|
threshold: 1%
|
||||||
|
informational: true
|
Loading…
Reference in New Issue