Skip to content

Drop use of UserPagePermissionsProxy #75

Drop use of UserPagePermissionsProxy

Drop use of UserPagePermissionsProxy #75

Workflow file for this run

name: CI
on:
push:
pull_request:
# Current configuration:
# - django 3.2, python 3.8, wagtail 4.1, sqlite
# - django 4.1, python 3.9, wagtail 5.0, postgresql
# - django 4.2, python 3.10, wagtail 5.1, sqlite
# - django 4.2, python 3.11, wagtail 5.2, postgresql
# - django 4.1, python 3.11, wagtail main, postgres (allow failures)
jobs:
test:
runs-on: ubuntu-20.04
continue-on-error: ${{ matrix.experimental }}
strategy:
matrix:
include:
- python: "3.8"
django: "Django>=3.2,<3.3"
wagtail: "wagtail>=4.1,<4.2"
database: "sqlite3"
experimental: false
- python: "3.9"
django: "Django>=4.1,<4.2"
wagtail: "wagtail>=5.0,<5.1"
database: "postgresql"
psycopg: "psycopg2>=2.6"
experimental: false
- python: "3.10"
django: "Django>=4.2,<4.3"
wagtail: "wagtail>=5.1,<5.2"
database: "sqlite3"
experimental: false
- python: "3.11"
django: "Django>=4.2,<4.3"
wagtail: "wagtail>=5.2,<5.3"
database: "postgresql"
psycopg: "psycopg2>=2.6"
experimental: false
- python: "3.11"
django: "Django>=4.2,<4.3"
wagtail: "git+https://github.com/wagtail/wagtail.git@main#egg=wagtail"
database: "postgresql"
psycopg: "psycopg2>=2.6"
experimental: true
services:
postgres:
image: postgres:12
env:
POSTGRES_PASSWORD: postgres
ports:
- 5432:5432
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install "${{ matrix.django }}"
pip install "${{ matrix.wagtail }}"
- name: Install psycopg
if: matrix.psycopg
run: |
pip install "${{ matrix.psycopg }}"
- name: Install package
run: |
pip install -e .[testing]
- name: Test
run: ./runtests.py
env:
DATABASE_ENGINE: django.db.backends.${{ matrix.database }}
DATABASE_HOST: localhost
DATABASE_USER: postgres
DATABASE_PASS: postgres