From 0ac5c5ebc7ebc315daa665433491986a11c2e10e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Andr=C3=A9=20Gomes=20Marques?= Date: Thu, 9 Jul 2026 15:34:25 +0200 Subject: [PATCH] Add minimal CI Runs the pytest suite on Python 3.11 and 3.12 plus a compile check, with a ci-ok gate job. No package install step since the plugin has no pyproject and needs no pip packages beyond pytest. Claude-Session: https://claude.ai/code/session_01K1ic1eRNwFgm5re6gANPMZ --- .github/workflows/ci.yml | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 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..62aea74 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,34 @@ +name: CI + +on: + push: + branches: [main] + pull_request: + branches: [main] + +jobs: + test: + runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + python-version: ["3.11", "3.12"] + 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: Compile check + run: python -m compileall -q scripts + - name: Run tests + # python -m pytest puts the repo root on sys.path so the tests can + # import scripts.asqav_hook; the bare pytest console script cannot. + run: python -m pytest tests/ -q + + ci-ok: + runs-on: ubuntu-latest + needs: test + steps: + - run: echo "CI passed"