Skip to content

Wagtail 5 support and drop support for Wagtail < 5 and Django < 4.2 #27

Wagtail 5 support and drop support for Wagtail < 5 and Django < 4.2

Wagtail 5 support and drop support for Wagtail < 5 and Django < 4.2 #27

Workflow file for this run

name: test
on: [pull_request, push]
jobs:
lint:
name: lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.10'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install tox
- name: Run tox -e flake8
run: tox
env:
TOXENV: flake8
test:
name: unittests
runs-on: ubuntu-latest
strategy:
matrix:
toxenv:
- py38-dj42-wt5
- py39-dj42-wt5
- py310-dj42-wt5
- py38-dj42-wt51
- py39-dj42-wt51
- py310-dj42-wt51
- py38-dj42-wt52
- py39-dj42-wt52
- py310-dj42-wt52
include:
- toxenv: py38-dj42-wt5
python-version: 3.8
- toxenv: py39-dj42-wt5
python-version: 3.9
- toxenv: py310-dj42-wt5
python-version: '3.10'
- toxenv: py38-dj42-wt51
python-version: 3.8
- toxenv: py39-dj42-wt51
python-version: 3.9
- toxenv: py310-dj42-wt51
python-version: '3.10'
- toxenv: py38-dj42-wt52
python-version: 3.8
- toxenv: py39-dj42-wt52
python-version: 3.9
- toxenv: py310-dj42-wt52
python-version: '3.10'
services:
postgres:
image: postgres:12
ports:
- 5432:5432
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
env:
POSTGRES_PASSWORD: postgres
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install tox
- name: Run tox
run: |
tox
env:
DATABASE_HOST: localhost
DATABASE_USER: postgres
DATABASE_PASS: postgres
TOXENV: ${{ matrix.toxenv }}