Skip to content

Commit 4b80557

Browse files
committed
chore(ci): 更新工作流配置
- 在lint工作流中添加python-version-file配置 - 在publish工作流中添加python-version-file配置 - 将test工作流中的Python版本列表扩展到3.14 - 为test工作流添加python-version动态配置
1 parent 6f3060e commit 4b80557

3 files changed

Lines changed: 7 additions & 1 deletion

File tree

.github/workflows/lint.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ jobs:
1515
uses: astral-sh/setup-uv@v7
1616
- name: Set up Python
1717
uses: actions/setup-python@v6
18+
with:
19+
python-version-file: ".python-version"
1820
- name: Install dependencies
1921
run: uv sync
2022
- name: Check code

.github/workflows/publish.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ jobs:
1818
uses: astral-sh/setup-uv@v7
1919
- name: Set up Python
2020
uses: actions/setup-python@v6
21+
with:
22+
python-version-file: ".python-version"
2123
- name: Build package
2224
run: uv build
2325
- name: Publish package distributions to PyPI

.github/workflows/test.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
runs-on: windows-latest # TODO: Use ubuntu-latest
1212
strategy:
1313
matrix:
14-
python-version: [ "3.8", "3.9", "3.10", "3.11", "3.12", "3.13" ]
14+
python-version: [ "3.8", "3.9", "3.10", "3.11", "3.12", "3.13", "3.14" ]
1515
steps:
1616
- uses: actions/checkout@v6
1717
- name: Install uv and set the Python version
@@ -20,6 +20,8 @@ jobs:
2020
python-version: ${{ matrix.python-version }}
2121
- name: Set up Python
2222
uses: actions/setup-python@v6
23+
with:
24+
python-version: ${{ matrix.python-version }}
2325
- name: Install dependencies
2426
run: uv sync
2527
- name: Test with pytest

0 commit comments

Comments
 (0)