FROM python:3.11-slim AS test

ENV PYTHONDONTWRITEBYTECODE=1
ENV PYTHONUNBUFFERED=1
ENV PIP_DISABLE_PIP_VERSION_CHECK=1

WORKDIR /app

COPY pyproject.toml README.md ./
COPY src ./src
COPY tests ./tests
COPY config ./config

RUN pip install --no-cache-dir -e ".[dev]"

CMD ["pytest", "-q"]
