name: Code Checks

on:
  push:
    branches: ["main", "Develop"]
  pull_request:
    branches: ["main", "Develop"]

jobs:
  nox-checks:
    runs-on: ubuntu-latest
    strategy:
      matrix:
        python-version: [3.12]

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

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

      - name: Install uv
        run: |
          curl -LsSf https://astral.sh/uv/install.sh | sh

      - name: Initialize project
        run: |
          uv sync

      - name: Run Nox sessions
        run: uv run nox
