Skip to content

Commit be1cee7

Browse files
authored
Make test-live opt-in on CI (#453)
Fixes #451
1 parent 698ad82 commit be1cee7

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

.github/workflows/R-CMD-check.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
- {os: windows-latest, r: 'oldrel-4'}
3131

3232
- {os: ubuntu-latest, r: 'devel', http-user-agent: 'release'}
33-
- {os: ubuntu-latest, r: 'release'}
33+
- {os: ubuntu-latest, r: 'release', testlive: true}
3434
- {os: ubuntu-latest, r: 'oldrel-1'}
3535
- {os: ubuntu-latest, r: 'oldrel-2'}
3636
- {os: ubuntu-latest, r: 'oldrel-3'}
@@ -60,3 +60,5 @@ jobs:
6060
with:
6161
upload-snapshots: true
6262
build_args: 'c("--no-manual","--compact-vignettes=gs+qpdf")'
63+
env:
64+
testlive: ${{ matrix.config.testlive }}

tests/testthat/helper.R

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,9 @@ show_response <- function(x) {
4040
skip_if_no_chromote <- function() {
4141
skip_on_cran()
4242
skip_if(lacks_chromote(), "chromote not available")
43+
44+
# On CI we have to opt-in to testlive
45+
skip_if(Sys.getenv("CI") == "true" && Sys.getenv('testlive') == "")
4346
}
4447

4548
lacks_chromote <- function() {

0 commit comments

Comments
 (0)