Spaces:
Running
Running
Jeremiah Lowin commited on
Commit ·
95ca50c
1
Parent(s): 7adc857
Update windows tests
Browse files
.github/workflows/run-static.yml
CHANGED
|
@@ -28,9 +28,3 @@ jobs:
|
|
| 28 |
python-version: "3.12"
|
| 29 |
- name: Run pre-commit
|
| 30 |
uses: pre-commit/action@v3.0.1
|
| 31 |
-
- name: Install dependencies
|
| 32 |
-
run: |
|
| 33 |
-
python -m pip install --upgrade pip
|
| 34 |
-
pip install ".[tests]"
|
| 35 |
-
- name: Run pyright
|
| 36 |
-
run: pyright src tests
|
|
|
|
| 28 |
python-version: "3.12"
|
| 29 |
- name: Run pre-commit
|
| 30 |
uses: pre-commit/action@v3.0.1
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.github/workflows/run-tests.yml
CHANGED
|
@@ -34,13 +34,6 @@ jobs:
|
|
| 34 |
matrix:
|
| 35 |
os: [ubuntu-latest, windows-latest, macos-latest]
|
| 36 |
python-version: ["3.10"]
|
| 37 |
-
# Use Python 3.11 for Windows to avoid the AttributeError with pyreadline in Python 3.10
|
| 38 |
-
exclude:
|
| 39 |
-
- os: windows-latest
|
| 40 |
-
python-version: "3.10"
|
| 41 |
-
include:
|
| 42 |
-
- os: windows-latest
|
| 43 |
-
python-version: "3.11"
|
| 44 |
fail-fast: false
|
| 45 |
|
| 46 |
steps:
|
|
@@ -55,6 +48,12 @@ jobs:
|
|
| 55 |
- name: Install FastMCP
|
| 56 |
run: uv sync
|
| 57 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 58 |
- name: Run tests
|
| 59 |
run: uv run pytest -vv
|
| 60 |
if: ${{ !(github.event.pull_request.head.repo.fork) }}
|
|
|
|
| 34 |
matrix:
|
| 35 |
os: [ubuntu-latest, windows-latest, macos-latest]
|
| 36 |
python-version: ["3.10"]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 37 |
fail-fast: false
|
| 38 |
|
| 39 |
steps:
|
|
|
|
| 48 |
- name: Install FastMCP
|
| 49 |
run: uv sync
|
| 50 |
|
| 51 |
+
- name: Fix pyreadline on Windows
|
| 52 |
+
if: matrix.os == 'windows-latest'
|
| 53 |
+
run: |
|
| 54 |
+
uv pip uninstall -y pyreadline
|
| 55 |
+
uv pip install pyreadline3
|
| 56 |
+
|
| 57 |
- name: Run tests
|
| 58 |
run: uv run pytest -vv
|
| 59 |
if: ${{ !(github.event.pull_request.head.repo.fork) }}
|