format-novel/tests/run-ci-tests

15 lines
541 B
Plaintext
Raw Normal View History

#!/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.
2023-11-06 17:24:05 +00:00
apk add --no-cache py3-typed-ast py3-regex py3-pip || true
2023-11-06 17:25:00 +00:00
pip3 install --ignore-installed tox==4.11.3
export COVERAGE_FILE=/tmp/.coverage
tox --workdir /tmp/.tox --sitepackages