test: test catboost on aarch64 runners

This commit is contained in:
Matthias
2025-10-19 16:46:33 +02:00
parent 886d5d1db6
commit 763f08a08e
2 changed files with 5 additions and 3 deletions

View File

@@ -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():

View File

@@ -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: