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:
@@ -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 ####################################################################"
|
||||
|
||||
Reference in New Issue
Block a user