Files
picard/scripts/package/run-sdist-test.sh
Philipp Wolfer a52f97b133 PICARD-1935: Include tests in sdist
Verify in CI the sdist package is complete and passes tests.
2020-09-04 13:38:27 +02:00

13 lines
239 B
Bash
Executable File

#!/usr/bin/env bash
# Build the sdist archive, extract it and run the tests.
set -e
rm -rf dist
python3 setup.py sdist
cd dist
SDIST_ARCHIVE=$(echo picard-*.tar.gz)
tar xvf "$SDIST_ARCHIVE"
cd "${SDIST_ARCHIVE%.tar.gz}"
pytest --verbose