Create a virtual environment, activate it and install all dependencies:
sudo apt install python3 python3-venv
python3 -m venv --prompt myvenv .venv
source .venv/bin/activate
pip install --upgrade pip wheel
pip install -r requirements.txt
Activate the virtual environment with
source .venv/bin/activate
Then run the tests with
./run-tests.sh