From e495633aeb743c288a776bf4dab1efdcaf7a48bf Mon Sep 17 00:00:00 2001 From: Ross McFarland Date: Thu, 27 Jan 2022 12:27:26 -0800 Subject: [PATCH] Fully vet the setup.py requirements and installed code during cibuild --- script/cibuild | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/script/cibuild b/script/cibuild index f356a84..e3a4996 100755 --- a/script/cibuild +++ b/script/cibuild @@ -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 ####################################################################"