diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 17a8474..c7bf4a2 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -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 @@ -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/