Skip to content

Commit c747c19

Browse files
committed
Switch coveralls with codecov
1 parent 3189072 commit c747c19

File tree

5 files changed

+51
-4
lines changed

5 files changed

+51
-4
lines changed

.Rbuildignore

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,7 @@
1111
robdist_new.*\.R
1212
^vignettes/vignette_new_RD\.rmd$
1313
^doc$
14-
^Meta$
14+
^Meta$
15+
^CRAN-RELEASE$
16+
^codecov\.yml$
17+
^\.github$

.github/workflows/test-coverage.yaml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# Workflow derived from https://github.com/r-lib/actions/tree/master/examples
2+
# Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help
3+
on:
4+
push:
5+
branches: [main, master]
6+
pull_request:
7+
branches: [main, master]
8+
9+
name: test-coverage
10+
11+
jobs:
12+
test-coverage:
13+
runs-on: ubuntu-latest
14+
env:
15+
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
16+
17+
steps:
18+
- uses: actions/checkout@v2
19+
20+
- uses: r-lib/actions/setup-r@v1
21+
with:
22+
use-public-rspm: true
23+
24+
- uses: r-lib/actions/setup-r-dependencies@v1
25+
with:
26+
extra-packages: covr
27+
28+
- name: Test coverage
29+
run: covr::codecov()
30+
shell: Rscript {0}

README.Rmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ output: github_document
99
<!-- badges: start -->
1010
[![R-CMD-check](https://github.com/mandymejia/fMRIscrub/workflows/R-CMD-check/badge.svg)](https://github.com/mandymejia/fMRIscrub/actions)
1111
[![AppVeyor build status](https://ci.appveyor.com/api/projects/status/github/mandymejia/fMRIscrub?branch=master&svg=true)](https://ci.appveyor.com/project/mandymejia/fMRIscrub)
12-
[![Coveralls test coverage](https://coveralls.io/repos/github/mandymejia/fMRIscrub/badge.svg?branch=master)](https://coveralls.io/github/mandymejia/fMRIscrub?branch=master)
12+
[![Codecov test coverage](https://codecov.io/gh/mandymejia/fMRIscrub/branch/master/graph/badge.svg)](https://app.codecov.io/gh/mandymejia/fMRIscrub?branch=master)
1313
<!-- badges: end -->
1414

1515
`fMRIscrub` is a collection of routines for data-driven scrubbing (projection scrubbing and DVARS), motion scrubbing, and other fMRI denoising strategies such as anatomical CompCor, detrending, and nuisance regression. The data-driven scrubbing methods are also applicable to other outlier detection tasks involving high-dimensional data.

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
[![R-CMD-check](https://github.com/mandymejia/fMRIscrub/workflows/R-CMD-check/badge.svg)](https://github.com/mandymejia/fMRIscrub/actions)
99
[![AppVeyor build
1010
status](https://ci.appveyor.com/api/projects/status/github/mandymejia/fMRIscrub?branch=master&svg=true)](https://ci.appveyor.com/project/mandymejia/fMRIscrub)
11-
[![Coveralls test
12-
coverage](https://coveralls.io/repos/github/mandymejia/fMRIscrub/badge.svg?branch=master)](https://coveralls.io/github/mandymejia/fMRIscrub?branch=master)
11+
[![Codecov test
12+
coverage](https://codecov.io/gh/mandymejia/fMRIscrub/branch/master/graph/badge.svg)](https://app.codecov.io/gh/mandymejia/fMRIscrub?branch=master)
1313
<!-- badges: end -->
1414

1515
`fMRIscrub` is a collection of routines for data-driven scrubbing

codecov.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
comment: false
2+
3+
coverage:
4+
status:
5+
project:
6+
default:
7+
target: auto
8+
threshold: 1%
9+
informational: true
10+
patch:
11+
default:
12+
target: auto
13+
threshold: 1%
14+
informational: true

0 commit comments

Comments
 (0)