Skip to content

Commit

Permalink
'line_exclusions' in covr must explicitly name files
Browse files Browse the repository at this point in the history
  • Loading branch information
mpadge committed Aug 22, 2024
1 parent 026370f commit 50b6abe
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 3 deletions.
26 changes: 25 additions & 1 deletion .github/workflows/test-coverage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,31 @@ jobs:
quiet = FALSE,
clean = FALSE,
install_path = file.path(normalizePath(Sys.getenv("RUNNER_TEMP"), winslash = "/"), "package"),
line_exclusions = list('src/tree-sitter/*')
line_exclusions = list(
'src/tree-sitter/lib/src/alloc.c',
'src/tree-sitter/lib/src/array.h',
'src/tree-sitter/lib/src/atomic.h',
'src/tree-sitter/lib/src/clock.h',
'src/tree-sitter/lib/src/get_changed_ranges.c',
'src/tree-sitter/lib/src/language.c',
'src/tree-sitter/lib/src/language.h',
'src/tree-sitter/lib/src/length.h',
'src/tree-sitter/lib/src/lexer.c',
'src/tree-sitter/lib/src/node.c',
'src/tree-sitter/lib/src/parser.c',
'src/tree-sitter/lib/src/point.h',
'src/tree-sitter/lib/src/query.c',
'src/tree-sitter/lib/src/reduce_action.h',
'src/tree-sitter/lib/src/reusable_node.h',
'src/tree-sitter/lib/src/stack.c',
'src/tree-sitter/lib/src/subtree.c',
'src/tree-sitter/lib/src/subtree.h',
'src/tree-sitter/lib/src/tree.c',
'src/tree-sitter/lib/src/tree_cursor.c',
'src/tree-sitter/lib/src/tree_cursor.h',
'src/tree-sitter/lib/src/unicode.c',
'src/tree-sitter/lib/src/wasm_store.c'
)
)
covr::to_cobertura(cov)
shell: Rscript {0}
Expand Down
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: pkgsimil
Title: Similarity Metrics between R Packages
Version: 0.1.0.002
Version: 0.1.0.003
Authors@R: c(
person("Mark", "Padgham", , "[email protected]", role = c("aut", "cre"),
comment = c(ORCID = "0000-0003-2172-5265")),
Expand Down
2 changes: 1 addition & 1 deletion codemeta.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"codeRepository": "https://github.com/ropensci-review-tools/pkgsimil",
"issueTracker": "https://github.com/ropensci-review-tools/pkgsimil/issues",
"license": "https://spdx.org/licenses/MIT",
"version": "0.1.0.002",
"version": "0.1.0.003",
"programmingLanguage": {
"@type": "ComputerLanguage",
"name": "R",
Expand Down

0 comments on commit 50b6abe

Please sign in to comment.