mirror of
https://github.com/github/octodns.git
synced 2024-05-11 05:55:00 +00:00
Merge pull request #951 from octodns/more-test-modules
Add octodns-bind and other modules to test-modules action
This commit is contained in:
3
.github/workflows/modules.yml
vendored
3
.github/workflows/modules.yml
vendored
@@ -11,7 +11,9 @@ jobs:
|
|||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
module:
|
module:
|
||||||
|
- asyncon/octoblox
|
||||||
- octodns/octodns-azure
|
- octodns/octodns-azure
|
||||||
|
- octodns/octodns-bind
|
||||||
- octodns/octodns-cloudflare
|
- octodns/octodns-cloudflare
|
||||||
- octodns/octodns-constellix
|
- octodns/octodns-constellix
|
||||||
- octodns/octodns-ddns
|
- octodns/octodns-ddns
|
||||||
@@ -35,6 +37,7 @@ jobs:
|
|||||||
- octodns/octodns-selectel
|
- octodns/octodns-selectel
|
||||||
- octodns/octodns-transip
|
- octodns/octodns-transip
|
||||||
- octodns/octodns-ultra
|
- octodns/octodns-ultra
|
||||||
|
- sukiyaki/octodns-netbox
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@master
|
- uses: actions/checkout@master
|
||||||
- name: Setup python
|
- name: Setup python
|
||||||
|
|||||||
@@ -25,8 +25,26 @@ cd $TMP_DIR
|
|||||||
git clone "https://github.com/${module}.git"
|
git clone "https://github.com/${module}.git"
|
||||||
cd $(basename $module)
|
cd $(basename $module)
|
||||||
echo "## install module dev requirements #############################################"
|
echo "## install module dev requirements #############################################"
|
||||||
pip install -e .[dev]
|
if [ -e setup.py ]; then
|
||||||
export PYTHONPATH=.:$PYTHONPATH
|
pip install -e .[dev] pytest-network
|
||||||
|
elif [ -f pyproject.toml ]; then
|
||||||
|
# install poetry
|
||||||
|
pip install poetry
|
||||||
|
# make sure that poetry doesn't blow away our locally installed octodns
|
||||||
|
sed -i'.bak' '/^octodns =/d' pyproject.toml
|
||||||
|
# now install all the deps
|
||||||
|
poetry install --no-root -v
|
||||||
|
else
|
||||||
|
echo "Unrecognized module management. Supports setup.py and poetry"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
echo "## installed modules ###########################################################"
|
||||||
|
pip freeze
|
||||||
echo "## run module tests ############################################################"
|
echo "## run module tests ############################################################"
|
||||||
pytest --disable-network
|
export PYTHONPATH=.:$PYTHONPATH
|
||||||
|
if [ -e setup.py ]; then
|
||||||
|
pytest --disable-network
|
||||||
|
elif [ -f poetry.toml ]; then
|
||||||
|
poetry run pytest []
|
||||||
|
fi
|
||||||
echo "## complete ####################################################################"
|
echo "## complete ####################################################################"
|
||||||
|
|||||||
Reference in New Issue
Block a user