mirror of
https://github.com/freqtrade/freqtrade.git
synced 2024-11-13 03:33:55 +00:00
try to deactivate any test that has a callback
This commit is contained in:
parent
340d2191ff
commit
73e9047cd5
|
@ -20,14 +20,6 @@ def is_mac() -> bool:
|
||||||
return "Darwin" in machine
|
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")
|
@pytest.fixture(scope="function")
|
||||||
def freqai_conf(default_conf, tmpdir):
|
def freqai_conf(default_conf, tmpdir):
|
||||||
freqaiconf = deepcopy(default_conf)
|
freqaiconf = deepcopy(default_conf)
|
||||||
|
|
|
@ -36,6 +36,9 @@ def can_run_model(model: str) -> None:
|
||||||
if is_pytorch_model and is_mac() and not is_arm():
|
if is_pytorch_model and is_mac() and not is_arm():
|
||||||
pytest.skip("Reinforcement learning / PyTorch module not available on intel based Mac OS.")
|
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', [
|
@pytest.mark.parametrize('model, pca, dbscan, float32, can_short, shuffle, buffer', [
|
||||||
('LightGBMRegressor', True, False, True, True, False, 0),
|
('LightGBMRegressor', True, False, True, True, False, 0),
|
||||||
|
|
Loading…
Reference in New Issue
Block a user