Skip to content

Commit

Permalink
nlwpy: run tests using minos
Browse files Browse the repository at this point in the history
  • Loading branch information
fdabrandao committed Feb 26, 2024
1 parent 89170c4 commit 93202bf
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
6 changes: 2 additions & 4 deletions nl-writer2/nlwpy/test/test_solve.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,10 +159,8 @@ def solve_and_check(solver, sopts, binary, stub):

def find_solver():
lst = modules.installed()
if "gurobi" in lst:
return modules.find("gurobi")
else:
return modules.find("minos")
assert "minos" in lst
return modules.find("minos")


def test_binary_nl():
Expand Down
9 changes: 5 additions & 4 deletions nl-writer2/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,12 @@ test-requires = [
"--index-url https://pypi.ampl.com",
"--extra-index-url https://pypi.org/simple",
"ampl_module_base",
"ampl_module_gurobi",
"ampl_module_highs",
"ampl_module_minos",
"amplpy", "pandas",
"numpy", scipy", "pytest"]
"amplpy",
"pandas",
"numpy",
"scipy",
"pytest"]
test-command = "pytest --pyargs nlwpy.test"

[tool.cibuildwheel.macos]
Expand Down

0 comments on commit 93202bf

Please sign in to comment.