Skip to content

Commit

Permalink
feat: use pyproject.toml and uv publish pkg
Browse files Browse the repository at this point in the history
  • Loading branch information
ifooth committed Nov 6, 2024
1 parent c94808a commit e0ef0f3
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13"]
steps:
- name: Checkout
uses: actions/checkout@v4
Expand All @@ -20,10 +20,19 @@ jobs:
uses: astral-sh/setup-uv@v3

- name: Lint
if: matrix.python-version != '3.13'
# 3.13 以下锁定版本
run: |
uv sync --frozen
uv run ruff check
- name: Lint 3.13
if: matrix.python-version == '3.13'
# 3.13 以上安装最新版本
run: |
uv sync
uv run ruff check
- name: Test
run: |
uv run pytest -s tests/
Expand Down

0 comments on commit e0ef0f3

Please sign in to comment.