From 28ea19c5874d88484988d2e0e560c1ef8c0fcf77 Mon Sep 17 00:00:00 2001 From: Claude Date: Tue, 7 Apr 2026 11:32:51 +0000 Subject: [PATCH] ci: add GitHub Actions workflow for syntax and lint checks Add a lightweight CI pipeline using ruff and compileall to catch syntax errors and undefined names on every PR and push to master. https://claude.ai/code/session_01UWMGfUisbf4xFSakYgMQrQ --- .github/workflows/ci.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 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..7dc54f8 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,27 @@ +name: CI + +on: + push: + branches: [master] + pull_request: + branches: [master] + +jobs: + lint: + name: Lint & Syntax Check + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - uses: actions/setup-python@v5 + with: + python-version: "3.10" + + - name: Install ruff + run: pip install ruff + + - name: Check syntax errors (E999) and undefined names (F821) + run: ruff check --select=E999,F821 . + + - name: Compile all .py files (catch SyntaxError) + run: python -m compileall -q .