Skip to content

Commit 1409705

Browse files
committed
test: marked evals, disable running by default
1 parent a8cc4ef commit 1409705

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ test:
2323
--cov=gptme --cov-report=xml --cov-report=term-missing --cov-report=html \
2424
-n 8 \
2525
$(if $(SLOW), --timeout 60, --timeout 5 -m "not slow") \
26+
$(if $(EVAL), , -m "not eval") \
2627
$(if $(PROFILE), --profile-svg) \
2728
$(if $(HAS_PLAYWRIGHT), --cov-config=scripts/.coveragerc-playwright)
2829

eval/test_eval.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
import pytest
2-
from evals import tests
32

3+
from evals import tests
44
from main import execute
55

66

77
@pytest.mark.slow
8+
@pytest.mark.eval
89
def test_eval(test):
910
"""
1011
This test will be run for each eval in the tests list.

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ ignore = ["E402", "E501"]
8484
[tool.pytest.ini_options]
8585
markers = [
8686
"slow: marks tests as slow (deselect with '-m \"not slow\"')",
87+
"eval: marks tests as evals (deselect with '-m \"not eval\"'), these may fail, and will not run in CI",
8788
"serial",
8889
]
8990

0 commit comments

Comments
 (0)