diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 1fc598d..57f8822 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -22,10 +22,17 @@ jobs: run: | python -m pip install --upgrade pip python -m pip install .[testing] + python -m pip install wagtail-modeladmin pip install -q wagtail==${{ matrix.wagtail-version }} - name: Run tests run: | python runtests.py + - name: Run tests with wagtail-modeladmin + run: | + python runtests.py + env: + DJANGO_SETTINGS_MODULE: tests.app.settings_with_wagtail_modeladmin + lint-black: runs-on: ubuntu-latest diff --git a/docker-compose.yml b/docker-compose.yml index eae542b..71104ef 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -12,6 +12,7 @@ services: - "./wagtail_trash:/srv/wagtail_trash" - "./settings_dev.py:/srv/settings_dev.py" - "./manage.py:/srv/manage.py" + - "./runtests.py:/srv/runtests.py" working_dir: /srv environment: - DATABASE_HOST=db diff --git a/tests/app/settings_with_wagtail_modeladmin.py b/tests/app/settings_with_wagtail_modeladmin.py new file mode 100644 index 0000000..5390e89 --- /dev/null +++ b/tests/app/settings_with_wagtail_modeladmin.py @@ -0,0 +1,6 @@ +from .settings import * # noqa + +INSTALLED_APPS = [ + "wagtail_modeladmin" if x == "wagtail.contrib.modeladmin" else x + for x in INSTALLED_APPS +]