From 6ab5633803ed4700fdb21a26e2fc12dda047b51f Mon Sep 17 00:00:00 2001 From: Jeremiah Lowin <153965+jlowin@users.noreply.github.com> Date: Mon, 7 Apr 2025 18:25:56 -0400 Subject: [PATCH] Update windows tests --- .github/workflows/run-static.yml | 6 ------ .github/workflows/run-tests.yml | 13 ++++++------- 2 files changed, 6 insertions(+), 13 deletions(-) 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/action@v3.0.1 - - 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) }}