diff --git a/.cirrus.yml b/.cirrus.yml index 02cc023b..f8e84294 100644 --- a/.cirrus.yml +++ b/.cirrus.yml @@ -46,8 +46,8 @@ linux_aarch64_task: <<: *RUN_TESTS windows_x86_task: - # The task takes ~55 minutes while the timeout happens - # after 60 minutes by default, let's allow some wiggle room. + # The task takes ~55 minutes while the timeout happens after 60 minutes by default, + # let's allow some wiggle room. timeout_in: 120m windows_container: image: cirrusci/windowsservercore:visualstudio2022 diff --git a/test/test_android.py b/test/test_android.py index d176b65b..fb10d23a 100644 --- a/test/test_android.py +++ b/test/test_android.py @@ -28,12 +28,10 @@ if (platform.system(), platform.machine()) not in [ ) # Detect CI services which have the Android SDK pre-installed. -ci_supports_build = any( - key in os.environ - for key in [ - "GITHUB_ACTIONS", - "TF_BUILD", # Azure Pipelines - ] +ci_supports_build = ( + ("CIRRUS_CI" in os.environ and platform.system() == "Darwin") + or "GITHUB_ACTIONS" in os.environ + or "TF_BUILD" in os.environ # Azure Pipelines ) if "ANDROID_HOME" not in os.environ: