Skip to content

Commit

Permalink
Add wagtail-modeladmin as test target
Browse files Browse the repository at this point in the history
  • Loading branch information
marteinn committed Dec 30, 2023
1 parent 98060f8 commit 1516265
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 6 additions & 0 deletions tests/app/settings_with_wagtail_modeladmin.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
from .settings import * # noqa

INSTALLED_APPS = [
"wagtail_modeladmin" if x == "wagtail.contrib.modeladmin" else x
for x in INSTALLED_APPS
]

0 comments on commit 1516265

Please sign in to comment.