Skip to content

Commit

Permalink
Assert CI
Browse files Browse the repository at this point in the history
  • Loading branch information
bottler committed Dec 3, 2024
1 parent edbd4ff commit 0a412c9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions nevergrad/optimization/test_optimizerlib.py
Original file line number Diff line number Diff line change
Expand Up @@ -1215,9 +1215,13 @@ def test_voronoide(n, b_per_dim) -> None:
if n < 25 or b_per_dim < 1 and not CI: # Outside CircleCI, only the big.
raise SkipTest("Only big things outside CI.")

if not CI:
raise ValueError(f"{os.environ.get('CIRCLECI', False)=} {os.environ.get('CI', False)=}")

list_optims = ["CMA", "DE", "PSO", "RandomSearch", "TwoPointsDE", "OnePlusOne"]
if CI:
raise SkipTest("OOMs in CI")
raise ValueError("Unreachable")
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 0a412c9

Please sign in to comment.