Debian Codegraph @

intents/script/test

raw
1 #!/usr/bin/env bash
2 set -eo pipefail
3
4 # Directory of *this* script
5 this_dir="$( cd "$( dirname "$0" )" && pwd )"
6
7 # Base directory of repo
8 base_dir="$(realpath "${this_dir}/..")"
9
10 # Path to virtual environment
11 : "${venv:=${base_dir}/venv}"
12
13 if [ -d "${venv}" ]; then
14 # Activate virtual environment if available
15 source "${venv}/bin/activate"
16 fi
17
18 python3 -m script.intentfest validate "$@"
19 pytest -vv -n auto "$@"