From 9789203ea2b8ab6f5c7f8b7d0c8a4c2f88e4eebd Mon Sep 17 00:00:00 2001 From: Quentin Marcou <18257721+qmarcou@users.noreply.github.com> Date: Sat, 1 Jun 2024 17:53:16 +0200 Subject: [PATCH] add codecov upload --- .github/workflows/test-coverage.yaml | 1 + R/plot.TPreg.R | 6 ++++++ README.Rmd | 1 + README.md | 1 + 4 files changed, 9 insertions(+) diff --git a/.github/workflows/test-coverage.yaml b/.github/workflows/test-coverage.yaml index 21b8a93..4e0ec42 100644 --- a/.github/workflows/test-coverage.yaml +++ b/.github/workflows/test-coverage.yaml @@ -13,6 +13,7 @@ jobs: runs-on: ubuntu-latest env: GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} + CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} steps: - uses: actions/checkout@v4 diff --git a/R/plot.TPreg.R b/R/plot.TPreg.R index 64ffe64..77ddc74 100644 --- a/R/plot.TPreg.R +++ b/R/plot.TPreg.R @@ -1,3 +1,9 @@ +autolayer.TPreg <- function() { + # https://stackoverflow.com/a/7099056 + # https://ggplot2.tidyverse.org/reference/automatic_plotting.html + return() +} + #' @export plot.TPreg <- function(x, covar, rug = TRUE, main, ylab, xlab, Ylim, ...) { diff --git a/README.Rmd b/README.Rmd index 8562347..06135e3 100644 --- a/README.Rmd +++ b/README.Rmd @@ -18,6 +18,7 @@ knitr::opts_chunk$set( [![Lifecycle Status](https://img.shields.io/badge/lifecycle-maturing-blue.svg)](https://lifecycle.r-lib.org/articles/stages.html) [![Tests](https://github.com/qmarcou/netidmtpreg/actions/workflows/test-coverage.yaml/badge.svg)](https://github.com/qmarcou/netidmtpreg/actions/workflows/test-coverage.yaml) +[![codecov](https://codecov.io/gh/qmarcou/netidmtpreg/graph/badge.svg?token=BMMMFGO30V)](https://codecov.io/gh/qmarcou/netidmtpreg) [![R-CMD-check](https://github.com/qmarcou/netidmtpreg/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/qmarcou/netidmtpreg/actions/workflows/R-CMD-check.yaml) diff --git a/README.md b/README.md index ccd635f..f587d81 100644 --- a/README.md +++ b/README.md @@ -8,6 +8,7 @@ [![Lifecycle Status](https://img.shields.io/badge/lifecycle-maturing-blue.svg)](https://lifecycle.r-lib.org/articles/stages.html) [![Tests](https://github.com/qmarcou/netidmtpreg/actions/workflows/test-coverage.yaml/badge.svg)](https://github.com/qmarcou/netidmtpreg/actions/workflows/test-coverage.yaml) +[![codecov](https://codecov.io/gh/qmarcou/netidmtpreg/graph/badge.svg?token=BMMMFGO30V)](https://codecov.io/gh/qmarcou/netidmtpreg) [![R-CMD-check](https://github.com/qmarcou/netidmtpreg/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/qmarcou/netidmtpreg/actions/workflows/R-CMD-check.yaml)