Skip to content

Commit

Permalink
Be more selective with test skips
Browse files Browse the repository at this point in the history
  • Loading branch information
simonbowly committed Oct 25, 2024
1 parent 9c07436 commit c02be79
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
6 changes: 0 additions & 6 deletions .github/workflows/wheel-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,6 @@ jobs:
exclude:
- python: "3.12"
gurobipy: "~=10.0"
- os: macos-latest
gurobipy: "==12.0.0b3"
include:
- os: macos-15-xlarge
gurobipy: "==12.0.0b3"
python: 3.11

steps:
- uses: actions/checkout@v4
Expand Down
8 changes: 8 additions & 0 deletions tests/opf/test_solver.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@

import collections
import math
import os
import random
import sys
import unittest

from gurobipy import GRB
Expand Down Expand Up @@ -154,6 +156,12 @@ def test_ac_branchswitching(self):
self.assert_approx_equal(solution["gen"][1]["Qg"], 0.0318441, tol=1e-1)
self.assert_approx_equal(solution["branch"][2]["Pt"], 56.23, tol=1e-1)

@unittest.skipIf(
os.environ.get("CI", "false") == "true"
and sys.platform == "darwin"
and GRB.VERSION_MAJOR == 12,
"Numerical trouble on github macos runners",
)
def test_ac_relax(self):
solution = solve_opf(self.case, opftype="ACRelax")
self.assertEqual(solution["success"], 1)
Expand Down

0 comments on commit c02be79

Please sign in to comment.