#!/bin/bash

set -e

# run linting of python and yaml files
echo 'Running linting...'
black campaigns/ tests/ dev.py --check
ruff check campaigns/ tests/ dev.py
mypy campaigns/ tests/ dev.py

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

echo 'Done!'
