From e74918a5445e94749b4369add6fb88225c129701 Mon Sep 17 00:00:00 2001 From: Copilot <198982749+Copilot@users.noreply.github.com> Date: Sun, 26 Oct 2025 10:16:54 -0400 Subject: [PATCH] Add CI test job for lowest-direct dependency resolution (#2261) * Initial plan * Add test job for lowest-direct dependency resolution Co-authored-by: strawgate <6384545+strawgate@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: strawgate <6384545+strawgate@users.noreply.github.com> --- .github/workflows/run-tests.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml index 29c024e86..d8cd826a6 100644 --- a/.github/workflows/run-tests.yml +++ b/.github/workflows/run-tests.yml @@ -59,6 +59,31 @@ jobs: - name: Run client process tests separately run: uv run pytest --inline-snapshot=disable tests -m "client_process" -x + run_tests_lowest_direct: + name: "Run tests with lowest-direct dependencies" + runs-on: ubuntu-latest + timeout-minutes: 10 + + steps: + - uses: actions/checkout@v5 + + - name: Install uv + uses: astral-sh/setup-uv@v7 + with: + enable-cache: true + cache-dependency-glob: "uv.lock" + python-version: "3.10" + + - name: Install FastMCP with lowest-direct resolution + # run with lowest-direct to test against the minimum allowed dependency versions + run: uv sync --resolution lowest-direct + + - name: Run tests (excluding integration and client_process) + run: uv run pytest --inline-snapshot=disable tests -m "not integration and not client_process" --numprocesses auto --maxprocesses 4 --dist worksteal + + - name: Run client process tests separately + run: uv run pytest --inline-snapshot=disable tests -m "client_process" -x + run_integration_tests: name: "Run integration tests" runs-on: ubuntu-latest