Spaces:
Running
Running
Merge pull request #468 from jlowin/run-tests
Browse files
.github/workflows/run-static.yml
CHANGED
|
@@ -14,13 +14,10 @@ on:
|
|
| 14 |
- "uv.lock"
|
| 15 |
- "pyproject.toml"
|
| 16 |
- ".github/workflows/**"
|
|
|
|
|
|
|
| 17 |
pull_request:
|
| 18 |
-
|
| 19 |
-
- "src/**"
|
| 20 |
-
- "tests/**"
|
| 21 |
-
- "uv.lock"
|
| 22 |
-
- "pyproject.toml"
|
| 23 |
-
- ".github/workflows/**"
|
| 24 |
workflow_dispatch:
|
| 25 |
|
| 26 |
permissions:
|
|
|
|
| 14 |
- "uv.lock"
|
| 15 |
- "pyproject.toml"
|
| 16 |
- ".github/workflows/**"
|
| 17 |
+
|
| 18 |
+
# run on all pull requests because these checks are required and will block merges otherwise
|
| 19 |
pull_request:
|
| 20 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 21 |
workflow_dispatch:
|
| 22 |
|
| 23 |
permissions:
|
.github/workflows/run-tests.yml
CHANGED
|
@@ -13,13 +13,9 @@ on:
|
|
| 13 |
- "uv.lock"
|
| 14 |
- "pyproject.toml"
|
| 15 |
- ".github/workflows/**"
|
|
|
|
|
|
|
| 16 |
pull_request:
|
| 17 |
-
paths:
|
| 18 |
-
- "src/**"
|
| 19 |
-
- "tests/**"
|
| 20 |
-
- "uv.lock"
|
| 21 |
-
- "pyproject.toml"
|
| 22 |
-
- ".github/workflows/**"
|
| 23 |
|
| 24 |
workflow_dispatch:
|
| 25 |
|
|
|
|
| 13 |
- "uv.lock"
|
| 14 |
- "pyproject.toml"
|
| 15 |
- ".github/workflows/**"
|
| 16 |
+
|
| 17 |
+
# run on all pull requests because these checks are required and will block merges otherwise
|
| 18 |
pull_request:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 19 |
|
| 20 |
workflow_dispatch:
|
| 21 |
|
tests/client/test_sse.py
CHANGED
|
@@ -137,6 +137,10 @@ async def test_nested_sse_server_resolves_correctly():
|
|
| 137 |
|
| 138 |
|
| 139 |
class TestTimeout:
|
|
|
|
|
|
|
|
|
|
|
|
|
| 140 |
async def test_timeout(self, sse_server: str):
|
| 141 |
with pytest.raises(
|
| 142 |
McpError,
|
|
|
|
| 137 |
|
| 138 |
|
| 139 |
class TestTimeout:
|
| 140 |
+
@pytest.mark.skipif(
|
| 141 |
+
sys.platform == "win32",
|
| 142 |
+
reason="This test is flaky on Windows. Sometimes the client timeout is respected and sometimes it is not.",
|
| 143 |
+
)
|
| 144 |
async def test_timeout(self, sse_server: str):
|
| 145 |
with pytest.raises(
|
| 146 |
McpError,
|