Skip to content

Commit 3eb2ea2

Browse files
committed
ci: add Python 3.11 support to lint workflow
- Add matrix strategy to test both Python 3.9 and 3.11 - Configure appropriate dependency installation for each version - Python 3.9: excludes MCP extras (not supported) - Python 3.11: includes all extras for full coverage - Aligns with existing test workflow pattern for consistency
1 parent c9df82a commit 3eb2ea2

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

.github/workflows/lint.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,25 @@ on:
88
jobs:
99
lint:
1010
runs-on: ubuntu-latest
11+
strategy:
12+
matrix:
13+
python-version: ["3.9", "3.11"]
14+
include:
15+
- python-version: "3.9"
16+
sync-extras: "--all-extras --no-extra mcp"
17+
- python-version: "3.11"
18+
sync-extras: "--all-extras"
1119
steps:
1220
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
1321

1422
- name: Install uv
1523
uses: astral-sh/setup-uv@e92bafb6253dcd438e0484186d7669ea7a8ca1cc # v6.4.3
1624
with:
17-
python-version: "3.9"
25+
python-version: ${{ matrix.python-version }}
1826
enable-cache: true
1927

2028
- name: Install dependencies
21-
run: uv sync --all-extras --no-extra mcp
29+
run: uv sync ${{ matrix.sync-extras }}
2230

2331
- name: Run Ruff
2432
uses: astral-sh/ruff-action@0c50076f12c38c3d0115b7b519b54a91cb9cf0ad # v3.5.0

0 commit comments

Comments
 (0)