#!/bin/bash

set -e

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

# run pytest with args set
echo 'Running tests...'

pytest -v tests/unit/ \
    --cov src \
    --cov-report xml:reports/coverage.xml \
    --cov-report term \
    --junitxml=reports/pyunit.xml \
    --docker-mode=external

echo 'Done!'
