Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,17 @@ 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:
- os: macos-11
python-version: 3.7
- os: macos-11
python-version: 3.8
- python-version: 3.7
dep: "[dev]"
- python-version: 3.8
Expand Down
4 changes: 2 additions & 2 deletions test/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down