From 117a78f37cd6cb44e9a9d5e3075fa251f6ba6985 Mon Sep 17 00:00:00 2001 From: kellijohnson-NOAA Date: Wed, 17 May 2023 12:59:31 -0700 Subject: [PATCH] chore: test coverage --- .github/workflows/test-coverage.yaml | 8 ++++++++ README.md | 1 + 2 files changed, 9 insertions(+) create mode 100644 .github/workflows/test-coverage.yaml diff --git a/.github/workflows/test-coverage.yaml b/.github/workflows/test-coverage.yaml new file mode 100644 index 0000000..656877b --- /dev/null +++ b/.github/workflows/test-coverage.yaml @@ -0,0 +1,8 @@ +# call a workflow that runs covr::codecov() to calculate code coverage +name: call-calc_coverage +# on specifies the build triggers. See more info at https://docs.github.com/en/actions/learn-github-actions/events-that-trigger-workflows +# The default is to run the workflow on every push or pull request to every branch. +on: [push, pull_request] +jobs: + call-workflow: + uses: nmfs-fish-tools/ghactions4r/.github/workflows/calc-coverage.yml@main diff --git a/README.md b/README.md index 95c82e0..af19bb0 100644 --- a/README.md +++ b/README.md @@ -6,6 +6,7 @@ [![R-CMD-check](https://github.com/pfmc-assessments/sa4ss/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/pfmc-assessments/sa4ss/actions/workflows/R-CMD-check.yaml) +[![codecov](https://codecov.io/gh/pfmc-assessments/sa4ss/branch/main/graph/badge.svg)](https://app.codecov.io/gh/pfmc-assessments/sa4ss) # Table of contents