name: Tests

on:
  pull_request:
  push:

jobs:
  fast-tests:
    name: Fast Tests (py${{ matrix.python-version }})
    runs-on: ubuntu-latest
    strategy:
      fail-fast: false
      matrix:
        python-version: ["3.11", "3.12"]

    steps:
      - name: Checkout code
        uses: actions/checkout@v4

      - name: Set up uv
        uses: astral-sh/setup-uv@v4

      - name: Set up Python
        uses: actions/setup-python@v5
        with:
          python-version: ${{ matrix.python-version }}

      - name: Install dependencies
        run: uv sync --all-extras

      - name: Run fast test lane
        env:
          RUN_INTEGRATION: "1"
          RUN_LIVE_API: "0"
          RUN_EXPENSIVE: "0"
          RUN_DOCKER: "0"
        run: >
          uv run pytest massgen/tests
          -m "not live_api and not docker and not expensive"
          -k "not test_timeline_snapshot and not test_final_lock_option and not test_web_quickstart_reasoning_sync and not test_subagent_input_bar_snapshot_matches_main_input"
          -q --tb=no
