Update windows tests

This commit is contained in:
Jeremiah Lowin 2025-04-07 18:25:56 -04:00
commit 6ab5633803
2 changed files with 6 additions and 13 deletions

View file

@ -28,9 +28,3 @@ jobs:
python-version: "3.12"
- name: Run pre-commit
uses: pre-commit/action@v3.0.1
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install ".[tests]"
- name: Run pyright
run: pyright src tests

View file

@ -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) }}