Skip to content

Commit 1ba4bcb

Browse files
committed
test
1 parent 107190d commit 1ba4bcb

1 file changed

Lines changed: 50 additions & 0 deletions

File tree

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

0 commit comments

Comments
 (0)