Skip to content

Commit

Permalink
Skip vaeac tests on mac os (NorskRegnesentral#403)
Browse files Browse the repository at this point in the history
  • Loading branch information
martinju authored and LHBO committed Oct 13, 2024
1 parent 268ea7d commit b6b274a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/R-CMD-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@

on:
push:
branches: [main, master, cranversion, devel]
branches: [main, master, cranversion, devel, 'shapr-1.0.0']
pull_request:
branches: [main, master, cranversion, devel]
branches: [main, master, cranversion, devel, 'shapr-1.0.0']

name: R-CMD-check

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/lint-changed-files.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
# Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help
on:
pull_request:
branches: [main, master]
branches: [main, master, cranversion, devel, 'shapr-1.0.0']

name: lint-changed-files

Expand Down
3 changes: 3 additions & 0 deletions tests/testthat/test-regular-output.R
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,7 @@ test_that("output_lm_numeric_ctree", {
})

test_that("output_lm_numeric_vaeac", {
skip_on_os("mac") # The code runs on macOS, but it gives different Shapley values due to inconsistencies in torch seed
expect_snapshot_rds(
explain(
testing = TRUE,
Expand Down Expand Up @@ -198,6 +199,7 @@ test_that("output_lm_categorical_ctree", {
})

test_that("output_lm_categorical_vaeac", {
skip_on_os("mac") # The code runs on macOS, but it gives different Shapley values due to inconsistencies in torch seed
expect_snapshot_rds(
explain(
testing = TRUE,
Expand Down Expand Up @@ -344,6 +346,7 @@ test_that("output_lm_mixed_ctree", {
})

test_that("output_lm_mixed_vaeac", {
skip_on_os("mac") # The code runs on macOS, but it gives different Shapley values due to inconsistencies in torch seed
expect_snapshot_rds(
explain(
testing = TRUE,
Expand Down

0 comments on commit b6b274a

Please sign in to comment.