name: pytest

on:
  pull_request:
    branches: [master]
  push:
    branches: [develop]

jobs:
  pytest-pull:
    runs-on: ubuntu-latest
    timeout-minutes: 15

    strategy:
      matrix:
        python-version: ["3.13"]

    steps:
      - name: Check out repository
        uses: actions/checkout@v4

      - name: Install uv and set the python version
        uses: astral-sh/setup-uv@v5
        with:
          python-version: ${{ matrix.python-version }}
          enable-cache: true
          cache-dependency-glob: "uv.lock"

      - name: Install Package
        run: uv sync --locked --group dev

      - name: Run pytest
        run: uv run pytest
