Skip to content

Commit 1d230a6

Browse files
authored
just throwing stuff against the wall to try to make code coverage work
1 parent 5d55272 commit 1d230a6

File tree

1 file changed

+7
-14
lines changed

1 file changed

+7
-14
lines changed

.github/workflows/test-coverage.yaml

Lines changed: 7 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,11 @@ jobs:
1313
runs-on: macOS-latest
1414
env:
1515
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
16+
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
1617

1718
steps:
1819
- uses: actions/checkout@v3
19-
2020
- uses: r-lib/actions/setup-r@v2
21-
2221
- uses: r-lib/actions/setup-pandoc@v2
2322

2423
- name: Query dependencies
@@ -42,20 +41,14 @@ jobs:
4241
BiocManager::install("phyloseq", ask = FALSE)
4342
remotes::install_deps(dependencies = TRUE)
4443
remotes::install_cran("covr")
45-
install.packages("xml2")
4644
shell: Rscript {0}
4745

48-
- name: Build coverage report
46+
- name: Debug token presence
4947
run: |
50-
cov <- covr::package_coverage()
51-
print(cov)
52-
covr::to_cobertura(cov, filename = "coverage.xml")
48+
cat("Has token? ", nzchar(Sys.getenv("CODECOV_TOKEN")), "\n", sep = "")
49+
cat("Token chars: ", nchar(Sys.getenv("CODECOV_TOKEN")), "\n", sep = "")
5350
shell: Rscript {0}
5451

55-
- name: Upload coverage reports to Codecov
56-
uses: codecov/codecov-action@v5
57-
with:
58-
token: ${{ secrets.CODECOV_TOKEN_tinyvamp }}
59-
files: coverage.xml
60-
slug: statdivlab/tinyvamp
61-
fail_ci_if_error: true
52+
- name: Test coverage
53+
run: covr::codecov()
54+
shell: Rscript {0}

0 commit comments

Comments
 (0)