mirror of
https://github.com/LostRuins/koboldcpp.git
synced 2026-08-26 06:31:13 +02:00
b3df57286c
* tests : remove fetch_server_test_models.py * ci : use tests.sh wrapper of pytest
19 lines
373 B
Bash
Executable File
19 lines
373 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
# make sure we are in the right directory
|
|
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
|
|
cd $SCRIPT_DIR
|
|
|
|
set -eu
|
|
|
|
if [ $# -lt 1 ]
|
|
then
|
|
if [[ "${SLOW_TESTS:-0}" == 1 ]]; then
|
|
pytest --durations=30 -v -x
|
|
else
|
|
pytest --durations=30 -v -x -m "not slow"
|
|
fi
|
|
else
|
|
pytest --durations=30 "$@"
|
|
fi
|