novel-stats/tests/run-ci-tests
Dan Helfman 3640f94625
Some checks failed
continuous-integration/drone/push Build is failing
Using tox 4 in CI.
2023-10-23 19:14:59 -07:00

16 lines
578 B
Bash
Executable File

#!/bin/sh
# This script installs test dependencies and runs all tests. It is designed to be run in a test
# container in CI. Therefore, on a developer machine, you should not run this script. Instead,
# just run "tox" directly.
set -e
apk add --no-cache python3 py3-pip
# If certain dependencies of black are available in this version of Alpine, install them.
apk add --no-cache py3-typed-ast py3-regex || true
python3 -m pip install --upgrade pip==23.3.1 setuptools==68.2.2
pip3 install tox==4.11.3
export COVERAGE_FILE=/tmp/.coverage
tox --workdir /tmp/.tox --sitepackages