1
0
mirror of https://github.com/deadc0de6/dotdrop.git synced 2026-02-04 16:14:45 +00:00
Files
dotdrop/scripts/check-unittests.sh
2023-11-26 21:33:45 +01:00

15 lines
386 B
Bash
Executable File
Vendored

#!/usr/bin/env bash
# author: deadc0de6 (https://github.com/deadc0de6)
# Copyright (c) 2023, deadc0de6
# stop on first error
set -eu -o errtrace -o pipefail
WORKERS=${DOTDROP_WORKERS:-}
if [ -n "${WORKERS}" ]; then
unset DOTDROP_WORKERS
echo "DISABLE workers for unittests"
fi
mkdir -p coverages/
coverage run -p --data-file coverages/coverage --source=dotdrop -m pytest tests -x