From ac2fc8c6d03413924881cce015aa2cda71c88601 Mon Sep 17 00:00:00 2001 From: Henrik Mettler Date: Wed, 12 Jan 2022 18:03:01 +0100 Subject: [PATCH 1/4] Run github actions testsuite on multiple os (ubuntu, macOS11) --- .github/workflows/tests.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index aebc97c0..851ca6d6 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -9,9 +9,10 @@ on: jobs: hal-cgp-testsuite: name: hal-cgp testsuite - runs-on: ubuntu-latest + runs-on: ${{ matrix.os }} strategy: matrix: + os: [ubuntu-latest, macos-11] python-version: [3.7, 3.8, 3.9] dep: ['[all]', '[dev]'] exclude: From 027421e0c896942d4ad5a9739e3fe38e36d4a3a2 Mon Sep 17 00:00:00 2001 From: Henrik Mettler Date: Thu, 13 Jan 2022 15:24:47 +0100 Subject: [PATCH 2/4] remote debugging: check whether an increased threshold is enough sleep time for decorated function on github macOS11 CI --- test/test_utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/test_utils.py b/test/test_utils.py index 2b7ae5c8..5f4bfb2e 100644 --- a/test/test_utils.py +++ b/test/test_utils.py @@ -264,12 +264,12 @@ def evaluate_objective_on_list(x): assert (time.time() - t0) > (0.9 * sleep_time) # second call should be faster as result is retrieved from cache; - # at most 40% of the sleep time; to account for possible timing + # at most 50% of the sleep time; to account for possible timing # measurement inaccuracies and process spin up/down time in # TravisCI we should not choose less t0 = time.time() evaluate_objective_on_list(x) - assert (time.time() - t0) < (0.4 * sleep_time) + assert (time.time() - t0) < (0.5 * sleep_time) def test_cache_decorator_consistency(individual): From 65961554dfffdcf446078b35fd3fd3dd4cefffb4 Mon Sep 17 00:00:00 2001 From: Henrik Mettler Date: Mon, 17 Jan 2022 09:26:24 +0100 Subject: [PATCH 3/4] exclude python 3.7, 3.8 from macos-11 CI --- .github/workflows/tests.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index 851ca6d6..b8b5428a 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -16,6 +16,8 @@ jobs: python-version: [3.7, 3.8, 3.9] dep: ['[all]', '[dev]'] exclude: + - os: macos-11 + python-version: [3.7, 3.8] - python-version: 3.7 dep: "[dev]" - python-version: 3.8 From 80924f79282a038d5b6dcfe22f2a9ccf272481ab Mon Sep 17 00:00:00 2001 From: Henrik Mettler Date: Tue, 18 Jan 2022 21:20:49 +0100 Subject: [PATCH 4/4] exclude python 3.7, 3.8 from macos-11 CI --- .github/workflows/tests.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index b8b5428a..03c0a02c 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -17,7 +17,9 @@ jobs: dep: ['[all]', '[dev]'] exclude: - os: macos-11 - python-version: [3.7, 3.8] + python-version: 3.7 + - os: macos-11 + python-version: 3.8 - python-version: 3.7 dep: "[dev]" - python-version: 3.8