Skip to content

Update ci.yml for different wagtail version testing #3

Update ci.yml for different wagtail version testing

Update ci.yml for different wagtail version testing #3

Workflow file for this run

name: CI
on:
pull_request:
push:
workflow_dispatch:
jobs:
tests-and-linting:
runs-on: ubuntu-latest
strategy:
matrix:
include:
- python-version: "3.10"
wagtail-version: "6.3"
- python-version: "3.11"
wagtail-version: "7.0"
- python-version: "3.12"
wagtail-version: "7.1"
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'
cache-dependency-path: '**/pyproject.toml'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install wagtail==${{ matrix.wagtail-version }}
pip install .[testing,dev]
- name: Check Python linting (Ruff)
run: ruff check --output-format=github
- name: Check Python formatting (Ruff)
run: ruff format --check
- name: Run tests
run: python runtests.py