2022-01-10 06:03:25 +00:00
|
|
|
#!/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
|
2022-08-29 06:36:49 +00:00
|
|
|
python3 -m pip install --upgrade pip==22.2.2 setuptools==65.3.0
|
|
|
|
pip3 install --ignore-installed tox==3.25.1
|
2022-01-10 06:03:25 +00:00
|
|
|
export COVERAGE_FILE=/tmp/.coverage
|
|
|
|
tox --workdir /tmp/.tox --sitepackages
|