From 97dfd1d6c17910969a8d06242928fb04f1dff221 Mon Sep 17 00:00:00 2001 From: James Reilly Date: Sat, 30 May 2026 06:19:09 +0100 Subject: [PATCH] feat(ci): add Python syntax and pytest collection validation to lint workflow Closes #173 --- .github/workflows/lint.yaml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/.github/workflows/lint.yaml b/.github/workflows/lint.yaml index bf4d17c..42c2161 100644 --- a/.github/workflows/lint.yaml +++ b/.github/workflows/lint.yaml @@ -29,3 +29,19 @@ jobs: echo "Checking $f..." argo lint --offline "$f" || echo "WARNING: $f needs server-side template resolution or has offline lint issues" done + + - name: Setup Python + uses: actions/setup-python@v6 + with: + python-version: '3.13' + + - name: Validate Python syntax + run: | + echo "Checking Python syntax..." + find tests/ -name '*.py' -print0 | xargs -0 python -m py_compile + + - name: Check pytest collection + run: | + echo "Checking pytest imports and collection..." + python -m pip install pytest -q + python -m pytest tests/ --collect-only -q 2>&1 | tail -5