Tokiniaina 7577dc2324
Some checks failed
ci / main (push) Failing after 1m23s
test path from oca
2024-10-24 11:46:29 +03:00

17 lines
351 B
Bash

#!/bin/bash
set -e
# Run pytest on the tests directory,
# which is assumed to be mounted somewhere in the docker image.
here=$(dirname $0)
testvenv=/tmp/testvenv
/usr/bin/python3 -m venv $testvenv
$testvenv/bin/pip install -r $here/requirements.txt
export PATH=$here/../bin:$PATH
$testvenv/bin/pytest --color=yes --ignore $here/data $here "$@"