Skip to content

Commit 151cd04

Browse files
committed
CI: Test single player mode as well
1 parent 67d7739 commit 151cd04

3 files changed

Lines changed: 27 additions & 2 deletions

File tree

configs/test_configs/battlesnake_pvp_test.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ game:
77
browser: false
88
tournament:
99
rounds: 1
10-
evaluate_matrix: false
1110
players:
1211
- agent: mini
1312
name: p1
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
game:
2+
name: BattleSnake
3+
sims_per_round: 1
4+
args:
5+
width: 11
6+
height: 11
7+
browser: false
8+
tournament:
9+
rounds: 1
10+
evaluate_matrix: true
11+
player:
12+
agent: mini
13+
name: p1
14+
config:
15+
agent: !include mini/default.yaml
16+
model: !include models/instant_submit.yaml
17+
prompts:
18+
game_description: "asdf"

tests/test_integration.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,17 @@
66
"""
77

88
from codeclash import CONFIG_DIR
9-
from main import main_cli
109

1110

1211
def test_pvp_battlesnake():
12+
from main import main_cli
13+
1314
config_path = CONFIG_DIR / "test_configs" / "battlesnake_pvp_test.yaml"
1415
main_cli(["-c", str(config_path)])
16+
17+
18+
def test_single_player_battlesnake():
19+
from main_single_player import main_cli
20+
21+
config_path = CONFIG_DIR / "test_configs" / "battlesnake_single_player_test.yaml"
22+
main_cli(["-c", str(config_path)])

0 commit comments

Comments
 (0)