mirror of
https://github.com/freqtrade/freqtrade.git
synced 2026-01-19 21:40:24 +00:00
test: test catboost on aarch64 runners
This commit is contained in:
@@ -4,7 +4,7 @@ import time
|
||||
from tests.conftest import is_arm, is_mac
|
||||
|
||||
|
||||
MAXIMUM_STARTUP_TIME = 0.7 if is_mac() and not is_arm() else 0.5
|
||||
MAXIMUM_STARTUP_TIME = 0.7 if is_mac() and not is_arm(True) else 0.5
|
||||
|
||||
|
||||
def test_startup_time():
|
||||
|
||||
@@ -500,9 +500,11 @@ def patch_gc(mocker) -> None:
|
||||
mocker.patch("freqtrade.main.gc_set_threshold")
|
||||
|
||||
|
||||
def is_arm() -> bool:
|
||||
def is_arm(include_aarch64: bool = False) -> bool:
|
||||
machine = platform.machine()
|
||||
return "arm" in machine or "aarch64" in machine
|
||||
if include_aarch64:
|
||||
return "aarch64" in machine or "arm" in machine
|
||||
return "arm" in machine
|
||||
|
||||
|
||||
def is_mac() -> bool:
|
||||
|
||||
Reference in New Issue
Block a user