17
17
GITHUB_PAT : ${{ secrets.GITHUB_TOKEN }}
18
18
19
19
steps :
20
- - uses : actions/checkout@v3
20
+ - uses : actions/checkout@v4
21
21
22
22
- uses : r-lib/actions/setup-r@v2
23
23
with :
29
29
30
30
- uses : r-lib/actions/setup-r-dependencies@v2
31
31
with :
32
- extra-packages : any::covr
32
+ extra-packages : |
33
+ any::covr
34
+ any::devtools
35
+ any::xml2
33
36
needs : coverage
34
37
35
38
- name : setup r-reticulate venv
@@ -47,13 +50,23 @@ jobs:
47
50
48
51
- name : Test coverage
49
52
run : |
50
- covr::codecov (
53
+ cov <- covr::package_coverage (
51
54
quiet = FALSE,
52
55
clean = FALSE,
53
- install_path = file.path(Sys.getenv("RUNNER_TEMP"), "package")
56
+ install_path = file.path(normalizePath( Sys.getenv("RUNNER_TEMP"), winslash = "/ "), "package")
54
57
)
58
+ covr::to_cobertura(cov)
55
59
shell : Rscript {0}
56
60
61
+ - uses : codecov/codecov-action@v4
62
+ with :
63
+ # Fail if error if not on PR, or if on PR and token is given
64
+ fail_ci_if_error : ${{ github.event_name != 'pull_request' || secrets.CODECOV_TOKEN }}
65
+ file : ./cobertura.xml
66
+ plugin : noop
67
+ disable_search : true
68
+ token : ${{ secrets.CODECOV_TOKEN }}
69
+
57
70
- name : Show testthat output
58
71
if : always()
59
72
run : |
63
76
64
77
- name : Upload test results
65
78
if : failure()
66
- uses : actions/upload-artifact@v3
79
+ uses : actions/upload-artifact@v4
67
80
with :
68
81
name : coverage-test-failures
69
82
path : ${{ runner.temp }}/package
77
90
GITHUB_PAT : ${{ secrets.GITHUB_TOKEN }}
78
91
79
92
steps :
80
- - uses : actions/checkout@v3
93
+ - uses : actions/checkout@v4
81
94
82
95
- uses : r-lib/actions/setup-r@v2
83
96
with :
@@ -89,7 +102,10 @@ jobs:
89
102
90
103
- uses : r-lib/actions/setup-r-dependencies@v2
91
104
with :
92
- extra-packages : any::covr
105
+ extra-packages : |
106
+ any::covr
107
+ any::devtools
108
+ any::xml2
93
109
needs : coverage
94
110
95
111
- name : setup r-reticulate venv
@@ -107,13 +123,23 @@ jobs:
107
123
108
124
- name : Test coverage
109
125
run : |
110
- covr::codecov (
126
+ cov <- covr::package_coverage (
111
127
quiet = FALSE,
112
128
clean = FALSE,
113
- install_path = file.path(Sys.getenv("RUNNER_TEMP"), "package")
129
+ install_path = file.path(normalizePath( Sys.getenv("RUNNER_TEMP"), winslash = "/ "), "package")
114
130
)
131
+ covr::to_cobertura(cov)
115
132
shell : Rscript {0}
116
133
134
+ - uses : codecov/codecov-action@v4
135
+ with :
136
+ # Fail if error if not on PR, or if on PR and token is given
137
+ fail_ci_if_error : ${{ github.event_name != 'pull_request' || secrets.CODECOV_TOKEN }}
138
+ file : ./cobertura.xml
139
+ plugin : noop
140
+ disable_search : true
141
+ token : ${{ secrets.CODECOV_TOKEN }}
142
+
117
143
- name : Show testthat output
118
144
if : always()
119
145
run : |
@@ -123,9 +149,9 @@ jobs:
123
149
124
150
- name : Upload test results
125
151
if : failure()
126
- uses : actions/upload-artifact@v3
152
+ uses : actions/upload-artifact@v4
127
153
with :
128
- name : coverage-test-failures
154
+ name : coverage-oldff1- test-failures
129
155
path : ${{ runner.temp }}/package
130
156
131
157
test-coverage-hard :
@@ -147,7 +173,7 @@ jobs:
147
173
R_KEEP_PKG_SOURCE : yes
148
174
149
175
steps :
150
- - uses : actions/checkout@v3
176
+ - uses : actions/checkout@v4
151
177
152
178
- uses : r-lib/actions/setup-pandoc@v2
153
179
@@ -166,17 +192,29 @@ jobs:
166
192
any::rmarkdown
167
193
any::markdown
168
194
any::covr
195
+ any::devtools
196
+ any::xml2
169
197
needs : coverage
170
198
171
199
- name : Test coverage
172
200
run : |
173
- covr::codecov (
201
+ cov <- covr::package_coverage (
174
202
quiet = FALSE,
175
203
clean = FALSE,
176
- install_path = file.path(Sys.getenv("RUNNER_TEMP"), "package")
204
+ install_path = file.path(normalizePath( Sys.getenv("RUNNER_TEMP"), winslash = "/ "), "package")
177
205
)
206
+ covr::to_cobertura(cov)
178
207
shell : Rscript {0}
179
208
209
+ - uses : codecov/codecov-action@v4
210
+ with :
211
+ # Fail if error if not on PR, or if on PR and token is given
212
+ fail_ci_if_error : ${{ github.event_name != 'pull_request' || secrets.CODECOV_TOKEN }}
213
+ file : ./cobertura.xml
214
+ plugin : noop
215
+ disable_search : true
216
+ token : ${{ secrets.CODECOV_TOKEN }}
217
+
180
218
- name : Show testthat output
181
219
if : always()
182
220
run : |
@@ -186,9 +224,9 @@ jobs:
186
224
187
225
- name : Upload test results
188
226
if : failure()
189
- uses : actions/upload-artifact@v3
227
+ uses : actions/upload-artifact@v4
190
228
with :
191
- name : coverage-test-failures
229
+ name : coverage-hard- test-failures
192
230
path : ${{ runner.temp }}/package
193
231
194
232
test-pkgdown-ok :
0 commit comments