Skip to content

Commit

Permalink
download_testfiles() for coverage (#633)
Browse files Browse the repository at this point in the history
  • Loading branch information
JanMarvin committed May 29, 2023
1 parent 628f123 commit e9fc8ec
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/check-standard.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
- {os: windows-latest, r: 'release'}
- {os: windows-latest, r: '4.1'}
- {os: ubuntu-latest, r: 'devel', http-user-agent: 'release'}
- {os: ubuntu-latest, r: 'release'}
- {os: ubuntu-latest, r: 'release', openxlsx2_testthat_fullrun: true}
- {os: ubuntu-latest, r: 'oldrel-1'}

env:
Expand All @@ -38,7 +38,7 @@ jobs:
with:
r-version: ${{ matrix.config.r }}
http-user-agent: ${{ matrix.config.http-user-agent }}
use-public-rspm: false
use-public-rspm: true

- uses: r-lib/actions/setup-r-dependencies@v2
with:
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/test-coverage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ on:

name: test-coverage

env:
openxlsx2_testthat_fullrun: TRUE

jobs:
test-coverage:
runs-on: ubuntu-latest
Expand Down
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,4 @@ RoxygenNote: 7.2.3
Roxygen: list(markdown = TRUE)
Config/testthat/edition: 3
Config/testthat/parallel: true
Config/testthat/start-first: read_sources
Config/testthat/start-first: aaa
6 changes: 5 additions & 1 deletion tests/testthat/test-aaa.R
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
test_that("testsetup", {
skip_on_ci()

if (Sys.getenv("openxlsx2_testthat_fullrun") == "") {
skip_on_ci()
}

skip_if_offline()
expect_true(download_testfiles())
})

0 comments on commit e9fc8ec

Please sign in to comment.