1
0
mirror of https://github.com/deadc0de6/dotdrop.git synced 2026-02-04 14:31:46 +00:00
Files
dotdrop/scripts/check-unittests.sh
2023-09-21 21:49:24 +02:00

15 lines
361 B
Bash
Executable File
Vendored

#!/usr/bin/env bash
# author: deadc0de6 (https://github.com/deadc0de6)
# Copyright (c) 2023, deadc0de6
# stop on first error
set -euo errtrace 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 -m pytest tests