name: CI

on:
  push:
    branches: [main]
  pull_request:
    branches: [main]

jobs:
  lint:
    name: Python Syntax Check
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v6

      - name: Set up Python 3.10
        uses: actions/setup-python@v6
        with:
          python-version: "3.10"

      - name: Check Python syntax
        run: |
          python3 -m py_compile scripts/fetch_page.py
          python3 -m py_compile scripts/parse_html.py
          python3 -m py_compile scripts/analyze_visual.py
          python3 -m py_compile scripts/capture_screenshot.py
          echo "All scripts passed syntax check"
