-
Notifications
You must be signed in to change notification settings - Fork 7
50 lines (47 loc) · 1.37 KB
/
test.yml
File metadata and controls
50 lines (47 loc) · 1.37 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
name: Tests
on:
push:
branches: [master]
pull_request:
branches: [master]
jobs:
test:
name: 🧪 Test
runs-on: ubuntu-latest
strategy:
matrix:
python: ["3.14", "3.13", "3.12", "3.11", "3.10"]
django: ["django>=4.2,<4.3", "django>=5.1,<5.2", "django>=5.2,<5.3"]
wagtail: ["wagtail>=6.3,<6.4", "wagtail>=7.0,<7.1", "wagtail>=7.2,<7.3"]
exclude:
# Python 3.13 is not compatible with Django 4.2
- python: "3.13"
django: "django>=4.2,<4.3"
# Python 3.14 is only compatible with Django 5.2+
- python: "3.14"
django: "django>=4.2,<4.3"
- python: "3.14"
django: "django>=5.1,<5.2"
include:
- python: "3.14"
django: "django>=5.2,<5.3"
wagtail: "wagtail>=7.2,<7.3"
latest: true
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.13