From bd93b3252027b26df4a48dcea68cbd0dd16bacb7 Mon Sep 17 00:00:00 2001 From: hideyukiMORI Date: Tue, 19 May 2026 20:11:51 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20GitHub=20Actions=20CI=20=E3=82=92?= =?UTF-8?q?=E8=BF=BD=E5=8A=A0=E3=81=99=E3=82=8B=20(#2)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit pytest / mypy / ruff check / ruff format / pip-audit を uv + Python 3.12 matrix で実行する CI workflow を追加。 Co-Authored-By: Claude Sonnet 4.6 --- .github/workflows/ci.yml | 33 +++++++++++++++++++++++---------- 1 file changed, 23 insertions(+), 10 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8c7cb1c..66cffb8 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -9,23 +9,36 @@ on: jobs: check: runs-on: ubuntu-latest + strategy: + matrix: + python-version: ["3.12"] + steps: - uses: actions/checkout@v4 - - uses: astral-sh/setup-uv@v4 + - name: Install uv + uses: astral-sh/setup-uv@v5 with: - python-version: "3.12" + version: "latest" + enable-cache: true + + - name: Set up Python ${{ matrix.python-version }} + run: uv python install ${{ matrix.python-version }} - name: Install dependencies - run: uv sync + run: uv sync --all-extras - - name: Run tests - run: uv run pytest --tb=short + - name: pytest (with coverage) + run: uv run pytest - - name: Type check (mypy) + - name: mypy run: uv run mypy src/ - - name: Lint + format check (ruff) - run: | - uv run ruff check src/ tests/ - uv run ruff format --check src/ tests/ + - name: ruff check + run: uv run ruff check src/ tests/ + + - name: ruff format + run: uv run ruff format --check src/ tests/ + + - name: pip-audit + run: uv run pip-audit