#!/bin/bash

set -e

# run linting of python files
echo 'Running linting...'

flake8 processing_accounting/ tests/

# run pytest with args set
echo 'Running tests...'

COVERAGE_FILE=build/.coverage python -m pytest -v tests/ \
    --cov processing_accounting \
    --cov-report xml:build/coverage.xml \
    --junitxml=build/pyunit.xml

echo 'Done!'
