From 34684c3a23ea75e9afb7d8483715ff9485cb79b9 Mon Sep 17 00:00:00 2001 From: yurekami Date: Fri, 22 May 2026 21:31:11 +0800 Subject: [PATCH] ci: use uv and test against Python 3.10 + 3.13 - Replace pip with uv (aligns test workflow with release.yaml and CLAUDE.md) - Add version matrix for 3.10 (minimum) and 3.13 (current) - Bump actions/checkout and actions/setup-python to v6 --- .github/workflows/test.yml | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 0637e6b..2cee5b8 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -11,19 +11,23 @@ permissions: jobs: pytest: runs-on: ubuntu-latest + strategy: + matrix: + python-version: ["3.10", "3.13"] steps: - - uses: actions/checkout@v4 - - uses: actions/setup-python@v5 + - uses: actions/checkout@v6 + - uses: actions/setup-python@v6 with: - python-version: "3.11" - - run: pip install -e ".[dev]" && pip install pytest - - run: pytest + python-version: ${{ matrix.python-version }} + - run: curl -LsSf https://astral.sh/uv/install.sh | sh + - run: uv sync + - run: uv run pytest pre-commit: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 - - uses: actions/setup-python@v5 + - uses: actions/checkout@v6 + - uses: actions/setup-python@v6 with: - python-version: "3.11" + python-version: "3.13" - uses: pre-commit/action@v3.0.1