#!/bin/bash

set -e

# run linting of python and yaml files
echo 'Running linting...'
uv run ty check
uv run ruff check
uv run ruff format --check

# run pytest with args set
echo 'Running tests...'
uv run pytest -v tests/unit/ \
    --cov dmp \
    --cov-report xml:reports/coverage.xml \
    --cov-report term \
    --junitxml=reports/pyunit.xml \
    --docker-mode=external

echo 'Done!'
