File tree 1 file changed +5
-16
lines changed
1 file changed +5
-16
lines changed Original file line number Diff line number Diff line change 8
8
9
9
name : test-coverage
10
10
11
- permissions : read-all
12
-
13
11
jobs :
14
12
test-coverage :
15
13
runs-on : ubuntu-latest
@@ -25,37 +23,28 @@ jobs:
25
23
26
24
- uses : r-lib/actions/setup-r-dependencies@v2
27
25
with :
28
- extra-packages : any::covr, any::xml2
26
+ extra-packages : any::covr
29
27
needs : coverage
30
28
31
29
- name : Test coverage
32
30
run : |
33
- cov <- covr::package_coverage (
31
+ covr::codecov (
34
32
quiet = FALSE,
35
33
clean = FALSE,
36
- install_path = file.path(normalizePath( Sys.getenv("RUNNER_TEMP"), winslash = "/ "), "package")
34
+ install_path = file.path(Sys.getenv("RUNNER_TEMP"), "package")
37
35
)
38
- covr::to_cobertura(cov)
39
36
shell : Rscript {0}
40
37
41
- - uses : codecov/codecov-action@v4
42
- with :
43
- fail_ci_if_error : ${{ github.event_name != 'pull_request' && true || false }}
44
- file : ./cobertura.xml
45
- plugin : noop
46
- disable_search : true
47
- token : ${{ secrets.CODECOV_TOKEN }}
48
-
49
38
- name : Show testthat output
50
39
if : always()
51
40
run : |
52
41
## --------------------------------------------------------------------
53
- find ' ${{ runner.temp }}/package' -name 'testthat.Rout*' -exec cat '{}' \; || true
42
+ find ${{ runner.temp }}/package -name 'testthat.Rout*' -exec cat '{}' \; || true
54
43
shell : bash
55
44
56
45
- name : Upload test results
57
46
if : failure()
58
- uses : actions/upload-artifact@v4
47
+ uses : actions/upload-artifact@v3
59
48
with :
60
49
name : coverage-test-failures
61
50
path : ${{ runner.temp }}/package
You can’t perform that action at this time.
0 commit comments