Skip to content

Commit

Permalink
run only fast tests in pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
spiralulam committed Aug 10, 2023
1 parent 712d5b3 commit 51a4366
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
6 changes: 2 additions & 4 deletions tests/test_curr.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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)
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 51a4366

Please sign in to comment.