Skip to content

Commit f8247b6

Browse files
committed
ci: fix Python version compatibility and optimize test matrix
1 parent 0d25e6e commit f8247b6

File tree

2 files changed

+15
-8
lines changed

2 files changed

+15
-8
lines changed

.github/workflows/ci.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,11 @@ jobs:
1212
strategy:
1313
fail-fast: false
1414
matrix:
15-
python-version: ["3.9", "3.10", "3.11", "3.12"]
16-
os: [ubuntu-latest, macos-latest, windows-latest]
15+
python-version: ["3.12", "3.13"]
16+
os: [ubuntu-latest]
17+
include:
18+
- python-version: "3.12"
19+
os: macos-latest
1720

1821
steps:
1922
- uses: actions/checkout@v4

.github/workflows/publish.yml

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,18 @@ jobs:
1313
runs-on: ubuntu-latest
1414
steps:
1515
- uses: actions/checkout@v4
16-
- name: Set up Python
17-
uses: actions/setup-python@v5
16+
17+
- name: Install uv and set Python version
18+
uses: astral-sh/setup-uv@v7
1819
with:
19-
python-version: "3.9"
20-
- name: Install build dependencies
21-
run: python -m pip install build
20+
python-version: "3.12"
21+
enable-cache: true
22+
23+
- name: Install dependencies
24+
run: uv sync --locked --all-extras --dev
25+
2226
- name: Build sdist and wheel
23-
run: python -m build
27+
run: uv run build
2428
- name: Store the distribution packages
2529
uses: actions/upload-artifact@v4
2630
with:

0 commit comments

Comments
 (0)