sns-alert-hub/run_tests.sh
Stefan Reimer 208749d01e
All checks were successful
ZeroDownTime/sns-alert-hub/pipeline/head This commit looks good
ZeroDownTime/sns-alert-hub/pipeline/tag This commit looks good
feat: upgrade Alpine to 3.20, libexecinfo fixes, make tests work
2024-09-12 06:17:31 +00:00

19 lines
464 B
Bash
Executable File

#!/bin/sh -ex
IMAGE=$1
ctr=$(buildah from $IMAGE)
trap "buildah rm $ctr" EXIT
buildah copy $ctr dev-requirements.txt .flake8 .
buildah copy $ctr aws-lambda-rie
buildah copy $ctr tests/ tests/
buildah run $ctr apk add zstd-libs
buildah run $ctr pip install -r dev-requirements.txt --target .
buildah run $ctr python -m flake8 app.py
buildah run $ctr python -m codespell_lib app.py
buildah run $ctr python -m pytest tests -c tests/pytest.ini --capture=tee-sys