Skip to content

Commit

Permalink
Reduce CI load for tests that don't need to be run on every commit
Browse files Browse the repository at this point in the history
  • Loading branch information
nrobinaubertin committed Oct 15, 2023
1 parent 327b200 commit 4403ade
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion tests/integration/test_algorithms.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
# This test equivalence between alphabeta and minimax
@pytest.mark.parametrize("fen", fens)
@pytest.mark.parametrize("depth", (1, 2, 3))
@pytest.mark.not_ci
def test_alphabeta(fen, depth):
b = utils.from_fen(fen)
pv1 = []
Expand Down Expand Up @@ -64,6 +65,7 @@ def test_alphabeta(fen, depth):
# This test equivalence between alphabeta and negamax
@pytest.mark.parametrize("fen", fens)
@pytest.mark.parametrize("depth", (1, 2, 3, 4))
@pytest.mark.not_ci
def test_negamax(fen, depth):
b = utils.from_fen(fen)
pv1 = []
Expand Down Expand Up @@ -98,6 +100,7 @@ def test_negamax(fen, depth):
# This test equivalence between negamax and negamax with move ordering
@pytest.mark.parametrize("fen", fens)
@pytest.mark.parametrize("depth", (1, 2, 3, 4))
@pytest.mark.not_ci
def test_negamax_mo(fen, depth):
b = utils.from_fen(fen)
pv1 = []
Expand Down Expand Up @@ -133,7 +136,7 @@ def test_negamax_mo(fen, depth):

# This test equivalence between our search and negamax_mo
@pytest.mark.parametrize("fen", fens)
@pytest.mark.parametrize("depth", (1, 2, 3, 4, 5))
@pytest.mark.parametrize("depth", (1, 2, 3, 4))
def test_search(fen, depth):
b = utils.from_fen(fen)
pv1 = []
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -46,4 +46,4 @@ deps =
pytest
pytest-xdist[psutil]
commands =
pytest {toxinidir}/tests/integration -x -n auto -vv --tb long --log-cli-level=INFO --ignore={[vars]tests_path}unit {posargs}
pytest {toxinidir}/tests/integration -x -n auto -vv --tb long --log-cli-level=INFO --ignore={[vars]tests_path}unit -m "not not_ci" {posargs}

0 comments on commit 4403ade

Please # to comment.