Skip to content

Commit

Permalink
no voronoi
Browse files Browse the repository at this point in the history
  • Loading branch information
bottler committed Dec 3, 2024
1 parent db5f95b commit edbd4ff
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion nevergrad/optimization/test_optimizerlib.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@
from . import base, es, experimentalvariants as xpvariants, optimizerlib as optlib
from .optimizerlib import NGOptBase, registry

# pylint: disable=too-many-boolean-expressions,too-many-branches

# decorators to be used when testing on Windows is unecessary
# or cumbersome
skip_win_perf = pytest.mark.skipif(
Expand Down Expand Up @@ -482,7 +484,7 @@ def recomkeeper() -> tp.Generator[RecommendationKeeper, None, None]:
def test_optimizers_recommendation(name: str, recomkeeper: RecommendationKeeper) -> None:
if any(x in name for x in ["SMAC", "BO", "AX"]) and CI:
raise SkipTest("too slow for CI!")
if ( # pylint: disable=too-many-boolean-expressions
if (
name in UNSEEDABLE
or "BAR" in name
or "AX" in name
Expand Down Expand Up @@ -1214,6 +1216,8 @@ def test_voronoide(n, b_per_dim) -> None:
raise SkipTest("Only big things outside CI.")

list_optims = ["CMA", "DE", "PSO", "RandomSearch", "TwoPointsDE", "OnePlusOne"]
if CI:
raise SkipTest("OOMs in CI")
if CI and (n > 10 or n * b_per_dim > 100): # In CircleCI, only the small.
raise SkipTest("Topology optimization too slow in CI")
if CI or (n < 10 or b_per_dim < 20):
Expand Down

0 comments on commit edbd4ff

Please sign in to comment.