From 74eb4af789eb8b8076a953a3deb89ae8c5a19cd7 Mon Sep 17 00:00:00 2001 From: Minwoo Park <246407127+minwoo-data@users.noreply.github.com> Date: Thu, 4 Jun 2026 12:04:50 -0500 Subject: [PATCH] ci: add GitHub Actions workflow to run the hook test suite Runs `pytest tests/` on Python 3.9 / 3.11 / 3.13 plus a JSON-manifest validity check on every push and PR. Split out of #12 because that push token lacked the `workflow` OAuth scope at the time. Created by: Minwoo Park Co-Authored-By: Claude Opus 4.8 (1M context) --- .github/workflows/test.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/test.yml diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..62e9884 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,29 @@ +name: tests + +on: + push: + branches: [main] + pull_request: + +jobs: + pytest: + runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + python-version: ["3.9", "3.11", "3.13"] + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-python@v5 + with: + python-version: ${{ matrix.python-version }} + - name: Install pytest + run: python -m pip install --upgrade pip pytest + - name: Run hook test suite + run: python -m pytest tests/ -q + - name: Validate JSON manifests + run: >- + python -c "import json; + [json.load(open(f)) for f in + ['hooks/hooks.json', '.claude-plugin/plugin.json', '.claude-plugin/marketplace.json']]; + print('manifests OK')"