-
Notifications
You must be signed in to change notification settings - Fork 16
50 lines (41 loc) · 1.57 KB
/
debug-mcp-test.yml
File metadata and controls
50 lines (41 loc) · 1.57 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
name: Debug MCP Session Test
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
workflow_dispatch: # Allow manual triggering
jobs:
debug-mcp-session-test:
name: Debug MCP Session Test (Python ${{ matrix.python-version }})
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.10", "3.11", "3.12"]
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0 # Fetch all history for all tags and branches
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install uv
uses: astral-sh/setup-uv@v6
with:
enable-cache: true
- name: Install the project
run: uv sync --locked --all-extras --dev
- name: Install tau2 for testing
run: uv pip install git+https://github.com/sierra-research/tau2-bench.git@main
- name: Debug Python version info
run: |
echo "Python version: $(python --version)"
python -c "import sys; print(f'sys.version_info: {sys.version_info}')"
python -c "import sys; minor = sys.version_info.minor; port = 9780 + (minor - 10); print(f'Expected port: {port}')"
- name: Run MCP Session Autocreate Test
env:
PYTHONWARNINGS: "ignore::DeprecationWarning,ignore::RuntimeWarning"
run: |
uv run pytest tests/pytest/test_mcp_session_autocreate.py::test_tool_call_returns_json_without_prior_initial_state -v -s --tb=short