You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
name: "Tests: Python ${{ matrix.python-version }} on ${{ matrix.os }}"
28
27
runs-on: ${{ matrix.os }}
29
28
strategy:
30
29
matrix:
@@ -39,76 +38,50 @@ jobs:
39
38
steps:
40
39
- uses: actions/checkout@v6
41
40
42
-
- name: Install uv
43
-
uses: astral-sh/setup-uv@v7
41
+
- uses: ./.github/actions/setup-uv
44
42
with:
45
-
enable-cache: true
46
-
cache-dependency-glob: "uv.lock"
47
43
python-version: ${{ matrix.python-version }}
44
+
resolution: locked
48
45
49
-
- name: Install FastMCP
50
-
# run with upgrade to always test against the latest compatible versions
51
-
run: uv sync --upgrade
46
+
- uses: ./.github/actions/run-pytest
52
47
53
-
- name: Run tests (excluding integration and client_process)
54
-
run: |
55
-
if [ "${{ matrix.os }}" == "windows-latest" ]; then
56
-
uv run pytest --inline-snapshot=disable tests -m "not integration and not client_process"
57
-
else
58
-
uv run pytest --inline-snapshot=disable tests -m "not integration and not client_process" --numprocesses auto --maxprocesses 4 --dist worksteal
59
-
fi
60
-
shell: bash
61
-
62
-
- name: Run client process tests separately
63
-
run: uv run pytest --inline-snapshot=disable tests -m "client_process" -x
48
+
- uses: ./.github/actions/run-pytest
49
+
with:
50
+
test-type: client_process
64
51
65
52
run_tests_lowest_direct:
66
-
name: "Run tests with lowest-direct dependencies"
53
+
name: "Tests with lowest-direct dependencies"
67
54
runs-on: ubuntu-latest
68
55
timeout-minutes: 10
69
56
70
57
steps:
71
58
- uses: actions/checkout@v6
72
59
73
-
- name: Install uv
74
-
uses: astral-sh/setup-uv@v7
60
+
- uses: ./.github/actions/setup-uv
75
61
with:
76
-
enable-cache: true
77
-
cache-dependency-glob: "uv.lock"
78
-
python-version: "3.10"
79
-
80
-
- name: Install FastMCP with lowest-direct resolution
81
-
# run with lowest-direct to test against the minimum allowed dependency versions
82
-
run: uv sync --resolution lowest-direct
62
+
resolution: lowest-direct
83
63
84
-
- name: Run tests (excluding integration and client_process)
85
-
run: uv run --resolution lowest-direct pytest --inline-snapshot=disable tests -m "not integration and not client_process" --numprocesses auto --maxprocesses 4 --dist worksteal
This likely means that upgraded dependencies have introduced new errors. Please review the failed jobs and determine if the code needs to be updated or if dependency constraints need to be adjusted.
117
+
118
+
- [ ] Review the failure in the workflow run
119
+
- [ ] Identify root cause (dependency changes, new linter/type rules, etc.)
120
+
- [ ] Implement fix or adjust dependency constraints
121
+
- [ ] Verify fix resolves the issue
122
+
123
+
---
124
+
*This issue was automatically created by a GitHub Action.*
0 commit comments