From a72ad5575263356c5e2cfb669774c4e85638ed92 Mon Sep 17 00:00:00 2001 From: smile <134200591+smileygames@users.noreply.github.com> Date: Sun, 15 Mar 2026 09:09:44 +0900 Subject: [PATCH] ci: add GitHub Actions test workflow MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PR と main push で unittest を自動実行する CI ワークフローを追加。 test_main.py の 7 テストを Python 3.12 で検証する。 Refs #11 Co-Authored-By: Claude Opus 4.6 --- .github/workflows/ci.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..57bef1b --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,18 @@ +name: CI + +on: + push: + branches: [main] + pull_request: + branches: [main] + +jobs: + test: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-python@v5 + with: + python-version: "3.12" + - run: pip install -r requirements.txt + - run: python -m unittest discover -v