#!/bin/bash

set -e

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

# run pytest with args set
echo 'Running tests...'
python -m pytest -v tests/unit/ \
		--cov app/ \
		--cov-report xml \
		--cov-report term \
		--junitxml=pyunit.xml \
        --docker-mode=external

echo 'Done.'
