Skip to content

πŸš€ The fast, Pythonic way to build MCP servers and clients.

Update windows tests

Jeremiah Lowin6ab5633803ed
diff --git a/.github/workflows/run-static.yml b/.github/workflows/run-static.yml
index 0eae35b2b..b837b5d14 100644
--- a/.github/workflows/run-static.yml
+++ b/.github/workflows/run-static.yml
@@ -28,9 +28,3 @@ jobs:
python-version: "3.12"
- name: Run pre-commit
uses: pre-commit/[email protected]
- - name: Install dependencies
- run: |
- python -m pip install --upgrade pip
- pip install ".[tests]"
- - name: Run pyright
- run: pyright src tests
diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml
index f07597d36..891323dc7 100644
--- a/.github/workflows/run-tests.yml
+++ b/.github/workflows/run-tests.yml
@@ -34,13 +34,6 @@ jobs:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
python-version: ["3.10"]
- # Use Python 3.11 for Windows to avoid the AttributeError with pyreadline in Python 3.10
- exclude:
- - os: windows-latest
- python-version: "3.10"
- include:
- - os: windows-latest
- python-version: "3.11"
fail-fast: false
steps:
@@ -55,6 +48,12 @@ jobs:
- name: Install FastMCP
run: uv sync
+ - name: Fix pyreadline on Windows
+ if: matrix.os == 'windows-latest'
+ run: |
+ uv pip uninstall -y pyreadline
+ uv pip install pyreadline3
+
- name: Run tests
run: uv run pytest -vv
if: ${{ !(github.event.pull_request.head.repo.fork) }}