run.sh 224 Bytes
#!/bin/bash

set -e
set -x

if [[ "$(uname -s)" == "Darwin" ]]; then
    PYENV_ROOT="$HOME/.pyenv"
    PATH="$PYENV_ROOT/bin:$PATH"
    eval "$(pyenv init -)"
    source ~/.venv/bin/activate
fi

python -m pytest -n16 tests/