Skip to content

Commit

Permalink
temporary skip tests that fails on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
mshr-h committed Oct 15, 2024
1 parent eb6cfb5 commit 4811f1f
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/test_extra_conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -619,6 +619,10 @@ def test_tvm_iforest_remainder_batch(self):

# Test batch with pandas.
@unittest.skipIf(not pandas_installed(), reason="Test requires pandas installed")
@unittest.skipIf(
((sys.platform == "win32") and is_on_github_actions()),
reason="Fails on Windows on GitHub Actions. See https://github.com/microsoft/hummingbird/pull/784 for more info.",
)
def test_pandas_batch(self):
import pandas

Expand Down Expand Up @@ -652,6 +656,10 @@ def test_pandas_batch(self):

# Test batch with pandas ts.
@unittest.skipIf(not pandas_installed(), reason="Test requires pandas installed")
@unittest.skipIf(
((sys.platform == "win32") and is_on_github_actions()),
reason="Fails on Windows on GitHub Actions. See https://github.com/microsoft/hummingbird/pull/784 for more info.",
)
def test_pandas_batch_ts(self):
import pandas

Expand Down
24 changes: 24 additions & 0 deletions tests/test_xgboost_converter.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,21 +78,37 @@ def test_xgb_perf_tree_trav_classifier_converter(self):

# Multi classifier
@unittest.skipIf(not xgboost_installed(), reason="XGBoost test requires XGBoost installed")
@unittest.skipIf(
((sys.platform == "win32") and is_on_github_actions()),
reason="Fails on Windows on GitHub Actions. See https://github.com/microsoft/hummingbird/pull/784 for more info.",
)
def test_xgb_multi_classifier_converter(self):
self._run_xgb_classifier_converter(3)

# Gemm multi classifier
@unittest.skipIf(not xgboost_installed(), reason="XGBoost test requires XGBoost installed")
@unittest.skipIf(
((sys.platform == "win32") and is_on_github_actions()),
reason="Fails on Windows on GitHub Actions. See https://github.com/microsoft/hummingbird/pull/784 for more info.",
)
def test_xgb_gemm_multi_classifier_converter(self):
self._run_xgb_classifier_converter(3, extra_config={"tree_implementation": "gemm"})

# Tree_trav multi classifier
@unittest.skipIf(not xgboost_installed(), reason="XGBoost test requires XGBoost installed")
@unittest.skipIf(
((sys.platform == "win32") and is_on_github_actions()),
reason="Fails on Windows on GitHub Actions. See https://github.com/microsoft/hummingbird/pull/784 for more info.",
)
def test_xgb_tree_trav_multi_classifier_converter(self):
self._run_xgb_classifier_converter(3, extra_config={"tree_implementation": "tree_trav"})

# Perf_tree_trav multi classifier
@unittest.skipIf(not xgboost_installed(), reason="XGBoost test requires XGBoost installed")
@unittest.skipIf(
((sys.platform == "win32") and is_on_github_actions()),
reason="Fails on Windows on GitHub Actions. See https://github.com/microsoft/hummingbird/pull/784 for more info.",
)
def test_xgb_perf_tree_trav_multi_classifier_converter(self):
self._run_xgb_classifier_converter(3, extra_config={"tree_implementation": "perf_tree_trav"})

Expand Down Expand Up @@ -167,6 +183,10 @@ def test_xgb_perf_tree_trav_regressor_converter(self):

# Float 64 data tests
@unittest.skipIf(not xgboost_installed(), reason="XGBoost test requires XGBoost installed")
@unittest.skipIf(
((sys.platform == "win32") and is_on_github_actions()),
reason="Fails on Windows on GitHub Actions. See https://github.com/microsoft/hummingbird/pull/784 for more info.",
)
def test_float64_xgb_classifier_converter(self):
warnings.filterwarnings("ignore")
num_classes = 3
Expand Down Expand Up @@ -232,6 +252,10 @@ def test_run_xgb_classifier_converter(self):

# Test xgboost with pandas.
@unittest.skipIf(not xgboost_installed() or not pandas_installed(), reason="test requires XGBoost and Pandas installed")
@unittest.skipIf(
((sys.platform == "win32") and is_on_github_actions()),
reason="Fails on Windows on GitHub Actions. See https://github.com/microsoft/hummingbird/pull/784 for more info.",
)
def test_run_xgb_pandas(self):
cali = fetch_california_housing()
data = pd.DataFrame(cali.data)
Expand Down

0 comments on commit 4811f1f

Please sign in to comment.