Skip to content

Commit

Permalink
Merge pull request #330 from UCD-SERG/update-test-coverage-GHA
Browse files Browse the repository at this point in the history
attempt to fix codecov error checking
  • Loading branch information
d-morrison authored Jan 8, 2025
2 parents ce83d48 + 7f0cc6f commit ac31268
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 8 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/test-coverage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@ jobs:

- uses: codecov/codecov-action@v4
with:
fail_ci_if_error: ${{ github.event_name != 'pull_request' && true || false }}
# Fail if error if not on PR, or if on PR and token is given
fail_ci_if_error: ${{ github.event_name != 'pull_request' || secrets.CODECOV_TOKEN }}
file: ./cobertura.xml
plugin: noop
disable_search: true
Expand Down
3 changes: 3 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@
(from <https://github.com/bcgov/ssdtools>) (#265)

## Internal changes

* Updated `test-coverage.yml` GHA action to current `r-lib` standard (#330)

* Change default pipe setting (#312)

* Add test for missing strata in `est.incidence.by` (#227)
Expand Down
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
<!-- badges: start -->

[![R-CMD-check](https://github.com/UCD-SERG/serocalculator/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/UCD-SERG/serocalculator/actions/workflows/R-CMD-check.yaml)
[![codecov](https://codecov.io/gh/UCD-SERG/serocalculator/graph/badge.svg?token=85CXV6GN2T)](https://codecov.io/gh/UCD-SERG/serocalculator)
[![Codecov test
coverage](https://codecov.io/gh/UCD-SERG/serocalculator/graph/badge.svg)](https://app.codecov.io/gh/UCD-SERG/serocalculator)
<!-- badges: end -->

<div id="fig-website-QR">
Expand Down
2 changes: 1 addition & 1 deletion README.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ knitr::opts_chunk$set(

<!-- badges: start -->
[![R-CMD-check](https://github.com/UCD-SERG/serocalculator/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/UCD-SERG/serocalculator/actions/workflows/R-CMD-check.yaml)
[![codecov](https://codecov.io/gh/UCD-SERG/serocalculator/graph/badge.svg?token=85CXV6GN2T)](https://codecov.io/gh/UCD-SERG/serocalculator)
[![Codecov test coverage](https://codecov.io/gh/UCD-SERG/serocalculator/graph/badge.svg)](https://app.codecov.io/gh/UCD-SERG/serocalculator)
<!-- badges: end -->

```{r svg}
Expand Down
9 changes: 5 additions & 4 deletions codecov.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
coverage:
status:
project: #add everything under here, more options at https://docs.codecov.com/docs/commit-status
project: # add everything under here, more options at
# https://docs.codecov.com/docs/commit-status
default:
# basic
target: auto #default
target: auto # default
threshold: 1%
base: auto
informational: true
informational: false # default
patch:
default:
target: auto
threshold: 1%
informational: true
informational: false
3 changes: 2 additions & 1 deletion inst/WORDLIST
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ CMD
Campylobacter
Ceper
Chiang
Codecov
De
Dhulikhel
Diekmann
Expand All @@ -17,6 +18,7 @@ FIC
Falkenhorst
Fogarty
Friesema
GHA
Gageldonk
Graaf
Gras
Expand Down Expand Up @@ -98,7 +100,6 @@ boldsymbol
callout
campylobacteriosis
cdot
codecov
de
der
devtools
Expand Down

0 comments on commit ac31268

Please sign in to comment.