diff --git a/.github/workflows/python-package.yml b/.github/workflows/python-package.yml index 4b3dbc1..7f7f507 100644 --- a/.github/workflows/python-package.yml +++ b/.github/workflows/python-package.yml @@ -39,6 +39,4 @@ jobs: CICD_ACTIVE: ${{ secrets.CICD_ACTIVE }} GRB_LICENSE_FILE: ${{ steps.write-license.outputs.grb_license_file }} run: | - pytest --cov - - name: Upload coverage to Codecov - uses: codecov/codecov-action@v3 + pytest -v -m fast_test diff --git a/tests/test_curr.py b/tests/test_curr.py index 3485e82..07c3b51 100644 --- a/tests/test_curr.py +++ b/tests/test_curr.py @@ -8,7 +8,7 @@ import pytest import random - +@pytest.mark.fast_test def test_core_model_copy(): # define problem problem_config = ProblemConfig(rnd_seed=73) @@ -29,7 +29,6 @@ def test_core_model_copy(): assert len(core_model_pyomo._all_feat) == len(core_model_pyomo_copy._all_feat) -@pytest.mark.fast_test def test_multiobj_constraints(): # define problem problem_config = ProblemConfig(rnd_seed=73) @@ -119,7 +118,6 @@ def my_func(x: float) -> float: assert round(res.opt_point[0]) == 0 -@pytest.mark.fast_test def test_compare_pyomo_gurobipy_multiobj(): """ Ensures for a multi objective example with l1 and l2 uncertainty metric and mixed feature types that optimization @@ -163,7 +161,7 @@ def test_compare_pyomo_gurobipy_multiobj(): # assert opt_gur._active_leaves == opt_pyo._active_leaves -@pytest.mark.fast_test + def test_compare_pyomo_gurobipy_singleobj(): """ Ensures for a single objective example with l1 and l2 uncertainty metric and mixed feature types that optimization