#!/bin/bash

set -e


echo "Running linting..."
yamllint -s docker-compose.yaml
flake8 src/ tests/ config.py

echo "Running unit tests"
pytest tests/unit \
    --cov src/ \
    --cov-report=xml:reports/coverage.xml\
    --cov-report=term-missing\
    --junitxml=reports/pyunit.xml

echo "Done!"
