diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 504de64..f0f792f 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -66,7 +66,7 @@ jobs: - name: Install dependencies run: | pip install --upgrade pip - python -m pip install -e . + sh build.sh pip install tox tox-gh-actions - name: Run tests using tox run: tox -e ${{ matrix.env }} diff --git a/build.sh b/build.sh new file mode 100644 index 0000000..fce52ab --- /dev/null +++ b/build.sh @@ -0,0 +1,8 @@ +#!/bin/bash + +# last version of `build` supporting Python 3.6 +pip install build==0.9.0 + +# build the wheel and install it +WHEEL_NAME=$(python -m build | grep -Po "django_mermaid-.*\.whl" | tail -n 1) +pip install dist/$WHEEL_NAME \ No newline at end of file diff --git a/tox.ini b/tox.ini index 393a551..41e3122 100644 --- a/tox.ini +++ b/tox.ini @@ -17,6 +17,7 @@ deps = django21: django<2.2 django11: django<2.0 -r{toxinidir}/tests/requirements.txt +allowlist_externals = sh commands = - pip install -e . + sh build.sh pytest