#!/bin/bash

set -e

echo 'Running linting...'

black dags/ plugins/ tests/ --check
ruff check dags/ plugins/ tests/
mypy dags/ plugins/ tests/

export PYTHONPATH="$PYTHONPATH:plugins/"

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

echo 'Done!'
