Skip to content

Commit

Permalink
[gha] updates and use covr dev (#1233)
Browse files Browse the repository at this point in the history
* [misc] update gha

* [misc] update LICENSE

* [misc] update codecov.yml

* [gha] try using the covr development version
  • Loading branch information
JanMarvin authored Jan 3, 2025
1 parent 45b6edf commit 6422d10
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 14 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/check-standard.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,8 @@ on:
push:
branches: [main, master]
pull_request:
branches: [main, master]

name: R-CMD-check
name: R-CMD-check.yaml

permissions: read-all

Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,8 @@ on:
push:
branches: [main, master]
pull_request:
branches: [main, master]

name: lint
name: lint.yaml

permissions: read-all

Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/pkgdown.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,11 @@ on:
push:
branches: [main, master]
pull_request:
branches: [main, master]
release:
types: [published]
workflow_dispatch:

name: pkgdown
name: pkgdown.yaml

permissions: read-all

Expand Down
11 changes: 8 additions & 3 deletions .github/workflows/test-coverage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,8 @@ on:
push:
branches: [main, master]
pull_request:
branches: [main, master]

name: test-coverage
name: test-coverage.yaml

env:
openxlsx2_testthat_fullrun: TRUE
Expand All @@ -31,6 +30,11 @@ jobs:
extra-packages: any::covr, any::xml2
needs: coverage

- name: Install development version of covr
run: |
pak::pkg_install("r-lib/covr")
shell: Rscript {0}

- name: Test coverage
run: |
cov <- covr::package_coverage(
Expand All @@ -43,7 +47,8 @@ jobs:

- uses: codecov/codecov-action@v4
with:
fail_ci_if_error: ${{ github.event_name != 'pull_request' && true || false }}
# Fail if error if not on PR, or if on PR and token is given
fail_ci_if_error: ${{ github.event_name != 'pull_request' || secrets.CODECOV_TOKEN }}
file: ./cobertura.xml
plugin: noop
disable_search: true
Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
YEAR: 2021-2024
YEAR: 2021-2025
COPYRIGHT HOLDER: openxlsx2 authors
6 changes: 2 additions & 4 deletions codecov.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
codecov:
token: 7b8cbf77-2ed6-4b1b-95b3-2a7eca741817

comment: no # do not comment PR with the result

comment: false
coverage:
status:
project: false
patch: false
project: false

0 comments on commit 6422d10

Please sign in to comment.