From 6a0e4d26892fc32ec09f18179f88c70413f2381a Mon Sep 17 00:00:00 2001 From: riccardoporreca Date: Tue, 26 Jan 2021 00:41:10 +0100 Subject: [PATCH] Include test coverage in CI workflow (#14). * Same setup as for the former Travis CI. --- .github/workflows/ci.yaml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 5cf5c66..a6b73c6 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -79,3 +79,10 @@ jobs: with: name: ${{ runner.os }}-r${{ matrix.config.r }}-results path: check + + - name: Test coverage + if: success() && runner.os == 'Linux' && matrix.config.r == 'release' + run: | + remotes::install_cran("covr") + covr::codecov(type = "all") + shell: Rscript {0}