From a793369feb478d3d4cece232b9b6e229787063e2 Mon Sep 17 00:00:00 2001 From: wharfe Date: Tue, 8 Sep 2026 23:15:35 +0900 Subject: [PATCH] =?UTF-8?q?chore:=20CI=20=E3=81=A7=20pytest=20=E3=82=92?= =?UTF-8?q?=E5=AE=9F=E8=A1=8C=E3=81=99=E3=82=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Python 側のテストは書かれていたが CI が一度も走らせていなかったため、 scripts/ のガード(検証器・stats・附則キー)が全部素通りでマージできる 状態だった。lint / build と並ぶ独立ジョブとして追加する。 87 tests / 0.39s なのでパスフィルタは付けず全 PR で無条件に実行する。 tests/test_shipped_data.py が frontend/public/data/ の生成物を読むので、 「スクリプトを直したがデータを再生成し忘れた」ズレもここで落ちる。 Closes #17 Co-Authored-By: Claude Opus 5 (1M context) Claude-Session: https://claude.ai/code/session_01VXy5NU1LCXmEcZfew4ezSu --- .github/workflows/ci.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9e2174d..d59cce5 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -43,3 +43,14 @@ jobs: name: build-output path: frontend/out/ retention-days: 1 + + test: + name: Python tests + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: astral-sh/setup-uv@v5 + with: + enable-cache: true + - run: uv python install + - run: uv run pytest -q