Prepare release 2.2.0 #105
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Tests | |
on: | |
push: | |
pull_request: | |
branches: [master] | |
# Current configuration: | |
# - python 3.9, django 4.2, wagtail 5.2 | |
# - python 3.9, django 4.2, wagtail 6.0 | |
# - python 3.10, django 4.2, wagtail 6.0 | |
# - python 3.11, django 4.2, wagtail 6.1 | |
# - python 3.12, django 5.0, wagtail 6.0 | |
# - python 3.12, django 5.0, wagtail 6.1 | |
jobs: | |
lint: | |
name: 🧹 Lint | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: 3.11 | |
cache: "pip" | |
cache-dependency-path: "**/setup.cfg" | |
- run: pip install -e .[lint] | |
- name: Run flake8 | |
run: | | |
# stop the build if there are Python syntax errors or undefined names | |
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics | |
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide | |
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics | |
- name: Run isort | |
run: isort . --check-only --diff | |
- name: Run black | |
run: black . --check --fast | |
test: | |
name: 🧪 Test | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
include: | |
- python: "3.9" | |
django: django>=4.2,<4.3 | |
wagtail: wagtail>=5.2,<5.3 | |
- python: "3.9" | |
django: django>=4.2,<4.3 | |
wagtail: wagtail>=6.0,<6.1 | |
- python: "3.10" | |
django: django>=4.2,<4.3 | |
wagtail: wagtail>=6.0,<6.1 | |
- python: "3.11" | |
django: django>=4.2,<4.3 | |
wagtail: wagtail>=6.1,<6.2 | |
- python: "3.12" | |
django: django>=5.0,<5.1 | |
wagtail: wagtail>=6.0,<6.1 | |
- python: "3.12" | |
django: django>=5.0,<5.1 | |
wagtail: wagtail>=6.1,<6.2 | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python }} | |
cache: "pip" | |
cache-dependency-path: "**/setup.cfg" | |
- run: | | |
pip install coverage | |
pip install "${{ matrix.wagtail }}" | |
- run: | | |
coverage run ./runtests.py | |
coverage report | |
coverage xml | |
- if: ${{ matrix.latest }} | |
uses: codecov/codecov-action@v4 | |
with: | |
name: Python 3.9 |