1
0
mirror of https://github.com/github/octodns.git synced 2024-05-11 05:55:00 +00:00

Fully vet the setup.py requirements and installed code during cibuild

This commit is contained in:
Ross McFarland
2022-01-27 12:27:26 -08:00
parent 4dff97e8f6
commit e495633aeb

View File

@@ -1,4 +1,5 @@
#!/bin/sh
set -e
cd "$(dirname "$0")/.."
@@ -27,4 +28,15 @@ echo "## tests/coverage ########################################################
script/coverage
echo "## validate setup.py build #####################################################"
python setup.py build
echo "## validate setup.py install ###################################################"
deactivate
TMP_DIR=$(mktemp -d -t ci-XXXXXXXXXX)
python3 -m venv $TMP_DIR
source "$TMP_DIR/bin/activate"
python setup.py install
octodns-sync --help
echo "## validate tests can run against installed code ###############################"
pip install .[dev]
cd $TMP_DIR
pytest --disable-network
echo "## complete ####################################################################"