Skip to content

Commit

Permalink
Move constrained_layout tests to 'expensive'; add expensive coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
jsiirola committed Jun 18, 2021
1 parent baf79e5 commit f067eff
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@ coverage:
# - !ci.appveyor.com
codecov:
notify:
# GHA: 4, Jenkins: 4
after_n_builds: 8 # all
# GHA: 4, Jenkins: 8
after_n_builds: 12 # all
wait_for_ci: yes
2 changes: 2 additions & 0 deletions pyomo/contrib/gdpopt/tests/test_LBB.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ def test_LBB_strip_pack(self):
fabs(value(strip_pack.total_length.expr) - 11) <= 1E-2)

@unittest.skipUnless(license_available, "Problem is too big for unlicensed BARON.")
@unittest.category('expensive')
def test_LBB_constrained_layout(self):
"""Test LBB with constrained layout."""
exfile = import_file(
Expand Down Expand Up @@ -186,6 +187,7 @@ def test_LBB_strip_pack(self):
fabs(value(strip_pack.total_length.expr) - 11) <= 1E-2)

@unittest.skipUnless(license_available, "Problem is too big for unlicensed BARON.")
@unittest.category('expensive')
def test_LBB_constrained_layout(self):
"""Test LBB with constrained layout."""
exfile = import_file(
Expand Down
3 changes: 3 additions & 0 deletions pyomo/contrib/gdpopt/tests/test_gdpopt.py
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,7 @@ def test_LOA_strip_pack_default_init(self):
self.assertTrue(
fabs(value(strip_pack.total_length.expr) - 11) <= 1E-2)

@unittest.category('expensive')
def test_LOA_constrained_layout_default_init(self):
"""Test LOA with constrained layout."""
exfile = import_file(
Expand Down Expand Up @@ -467,6 +468,7 @@ def test_RIC_strip_pack_default_init(self):
self.assertTrue(
fabs(value(strip_pack.total_length.expr) - 11) <= 1E-2)

@unittest.category('expensive')
def test_RIC_constrained_layout_default_init(self):
"""Test RIC with constrained layout."""
exfile = import_file(
Expand Down Expand Up @@ -664,6 +666,7 @@ def test_GLOA_strip_pack_default_init(self):
fabs(value(strip_pack.total_length.expr) - 11) <= 1E-2)

@unittest.skipUnless(license_available, "Global NLP solver license not available.")
@unittest.category('expensive')
def test_GLOA_constrained_layout_default_init(self):
"""Test LOA with constrained layout."""
exfile = import_file(
Expand Down

0 comments on commit f067eff

Please sign in to comment.