@ -3,18 +3,20 @@ set -e
cd "$(dirname "$0")/.."
cd "$(dirname "$0")/.."
VERSION="$(grep "^__version__" "./octodns/__init__.py" | sed -e "s/.* = '//" -e "s/'$//")"
echo "## create test venv ############################################################"
echo "## create test venv ############################################################"
TMP_DIR=$(mktemp -d -t ci-XXXXXXXXXX)
TMP_DIR=$(mktemp -d -t ci-XXXXXXXXXX)
python3 -m venv $TMP_DIR
python3 -m venv $TMP_DIR
. "$TMP_DIR/bin/activate"
. "$TMP_DIR/bin/activate"
pip install setuptools
pip install build setuptools
echo "## environment & versions ######################################################"
echo "## environment & versions ######################################################"
python --version
python --version
pip --version
pip --version
echo "## validate setup.py build #####################################################"
echo "## validate setup.py build #####################################################"
python setup.py build
echo "## validate setup.py install ###################################################"
python setup.py instal l
python -m build --sdist --wheel
echo "## validate wheel install ###################################################"
pip install dist/*$VERSION*.wh l
echo "## validate tests can run against installed code ###############################"
echo "## validate tests can run against installed code ###############################"
pip install pytest pytest-network
pip install pytest pytest-network
pytest --disable-network
pytest --disable-network