Skip to content

Commit 5f72d3a

Browse files
committed
update test-coverage workflow
1 parent a37c152 commit 5f72d3a

File tree

3 files changed

+23
-4
lines changed

3 files changed

+23
-4
lines changed

.github/workflows/test-coverage.yaml

+21-2
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ jobs:
1919
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
2020

2121
steps:
22-
2322
- uses: actions/checkout@v4
2423

2524
- uses: r-lib/actions/setup-r@v2
@@ -32,5 +31,25 @@ jobs:
3231
needs: coverage
3332

3433
- name: Test coverage
35-
run: covr::codecov(line_exclusions = list('R/overpass-query.R', 'src/rapidxml.h','src/rapidxml_print.h'),function_exclusions=c('osm_elevation','check_elev_file'))
34+
run: |
35+
covr::codecov(
36+
quiet = FALSE,
37+
clean = FALSE,
38+
install_path = file.path(Sys.getenv("RUNNER_TEMP"), "package"),
39+
line_exclusions = list('R/overpass-query.R', 'src/rapidxml.h','src/rapidxml_print.h'),function_exclusions=c('osm_elevation','check_elev_file')
40+
)
3641
shell: Rscript {0}
42+
43+
- name: Show testthat output
44+
if: always()
45+
run: |
46+
## --------------------------------------------------------------------
47+
find ${{ runner.temp }}/package -name 'testthat.Rout*' -exec cat '{}' \; || true
48+
shell: bash
49+
50+
- name: Upload test results
51+
if: failure()
52+
uses: actions/upload-artifact@v3
53+
with:
54+
name: coverage-test-failures
55+
path: ${{ runner.temp }}/package

DESCRIPTION

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Package: osmdata
22
Title: Import 'OpenStreetMap' Data as Simple Features or Spatial Objects
3-
Version: 0.2.5.006
3+
Version: 0.2.5.007
44
Authors@R: c(
55
person("Mark", "Padgham", , "[email protected]", role = c("aut", "cre")),
66
person("Bob", "Rudis", role = "aut"),

codemeta.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"codeRepository": "https://github.com/ropensci/osmdata/",
1212
"issueTracker": "https://github.com/ropensci/osmdata/issues",
1313
"license": "https://spdx.org/licenses/GPL-3.0",
14-
"version": "0.2.5.006",
14+
"version": "0.2.5.007",
1515
"programmingLanguage": {
1616
"@type": "ComputerLanguage",
1717
"name": "R",

0 commit comments

Comments
 (0)