try to deactivate any test that has a callback

This commit is contained in:
robcaulk 2023-05-14 14:53:12 +00:00
parent 340d2191ff
commit 73e9047cd5
2 changed files with 3 additions and 8 deletions

View File

@ -20,14 +20,6 @@ def is_mac() -> bool:
return "Darwin" in machine
@pytest.fixture(scope="function", autouse=True)
def patch_tensorboard_maconly(mocker):
if is_mac():
# MacOS CI is not friendly to tensorboard
mocker.patch('freqtrade.freqai.tensorboard.tensorboard.SummaryWriter')
mocker.patch('freqtrade.freqai.tensorboard.tensorboard.TensorBoardCallback.after_iteration')
@pytest.fixture(scope="function")
def freqai_conf(default_conf, tmpdir):
freqaiconf = deepcopy(default_conf)

View File

@ -36,6 +36,9 @@ def can_run_model(model: str) -> None:
if is_pytorch_model and is_mac() and not is_arm():
pytest.skip("Reinforcement learning / PyTorch module not available on intel based Mac OS.")
if "XGBoost" in model and is_mac():
pytest.skip("Mac doesn't tb callbacks?")
@pytest.mark.parametrize('model, pca, dbscan, float32, can_short, shuffle, buffer', [
('LightGBMRegressor', True, False, True, True, False, 0),