Skip to content

Commit 8abd915

Browse files
committed
test(mcp): wire pytest-asyncio, install [mcp] in CI so MCP tests run
1 parent b10ba71 commit 8abd915

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -166,9 +166,9 @@ jobs:
166166
PYO3_USE_ABI3_FORWARD_COMPATIBILITY: "1"
167167
run: |
168168
# PEP 660 editable install — maturin builds the Rust extension and
169-
# pip installs everything (diffctx + [dev,full] extras). Skip build
169+
# pip installs everything (diffctx + [dev,full,mcp] extras). Skip build
170170
# isolation since we just installed maturin in this env.
171-
pip install -e ".[dev,full]" --no-build-isolation
171+
pip install -e ".[dev,full,mcp]" --no-build-isolation
172172
173173
- name: Run Tests with Coverage
174174
shell: bash

pyproject.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ optional-dependencies.dev = [
6767
"pre-commit>=3.0,<5.0",
6868
"pygit2>=1.12,<2.0",
6969
"pytest>=7.0,<10.0",
70+
"pytest-asyncio>=0.23,<2.0",
7071
"pytest-cov>=3.0,<8.0",
7172
"pytest-timeout>=2.1,<3.0",
7273
"pytest-xdist>=3.0,<4.0",
@@ -155,6 +156,7 @@ ini_options.norecursedirs = [ "mutants", ".git", ".mypy_cache", ".pytest_cache",
155156
ini_options.addopts = "-n auto --dist worksteal"
156157
ini_options.truncation_limit_lines = 100
157158
ini_options.timeout = 10
159+
ini_options.asyncio_mode = "auto"
158160

159161
[tool.coverage]
160162
run.branch = true

0 commit comments

Comments
 (0)