#!/bin/bash

set -e

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


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

echo 'Done.'
