File: test.sh

package info (click to toggle)
umap-learn 0.4.5%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 1,668 kB
  • sloc: python: 7,504; sh: 77; makefile: 17
file content (18 lines) | stat: -rw-r--r-- 460 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
set -e

if [[ "$COVERAGE" == "true" ]]; then
    black --check $MODULE
fi

# Get into a temp directory to run test from the installed scikit learn and
# check if we do not leave artifacts
#mkdir -p $TEST_DIR

#cd $TEST_DIR

if [[ "$COVERAGE" == "true" ]]; then
    export NUMBA_DISABLE_JIT=1
    coverage run -m pytest --show-capture=no -v --disable-warnings --basetemp=$TEST_DIR
else
    pytest --show-capture=no -v --disable-warnings --basetemp=$TEST_DIR
fi