Skip to content

Commit 1e2f5fc

Browse files
committed
skip certain snapshot tests on certain OSs as there are minor differences that aren't really that interesting
1 parent c44f75b commit 1e2f5fc

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

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

-1
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,6 @@ jobs:
8080
- name: Install package + deps
8181
run: remotes::install_local(dependencies = TRUE, force = TRUE)
8282

83-
8483
- name: Install greta deps
8584
run: |
8685
library(greta)

tests/testthat/test-greta_python_deps.R

+2
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ test_that("greta python range detection works correctly",{
3232

3333
test_that("greta_python_deps fails appropriately", {
3434
skip_if_not(check_tf_version())
35+
# skip on windows as there are small differences in version recommendations
36+
skip_on_os(os = "windows")
3537
# default
3638
expect_snapshot(greta_python_deps())
3739
# some correct ranges

tests/testthat/test-print_calculate.R

+2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
test_that("calculate print method is different for different inputs", {
22
# ensure print method is the new MCMC one
3+
skip_on_cran()
4+
skip_on_os(os = "mac")
35

46
x <- normal(0,1)
57
m <- model(x)

0 commit comments

Comments
 (0)