7
7
runs-on : ubuntu-latest
8
8
strategy :
9
9
matrix :
10
- python-version : ['3.7 ', '3.8 ', '3.9 ', '3.10 ', '3.11 ', '3.12 ']
10
+ python-version : ['3.8 ', '3.9 ', '3.10 ', '3.11 ', '3.12 ', '3.13.0-rc.1 ']
11
11
django-version :
12
12
- ' 3.2' # LTS April 2024
13
13
- ' 4.2' # LTS April 2026
14
14
- ' 5.0' # April 2025
15
15
- ' 5.1' # December 2025
16
+ drf-version :
17
+ - ' 3.14'
18
+ - ' 3.15'
19
+ filter-version :
20
+ - ' 23.5'
21
+ - ' 24.0'
16
22
exclude :
17
- - python-version : ' 3.7'
18
- django-version : ' 5.0'
19
- - python-version : ' 3.7'
20
- django-version : ' 4.2'
21
23
- python-version : ' 3.8'
22
24
django-version : ' 5.0'
23
25
- python-version : ' 3.9'
24
26
django-version : ' 5.0'
25
27
- python-version : ' 3.11'
26
28
django-version : ' 3.2'
27
- - python-version : ' 3.12 '
29
+ - python-version : ' 3.11 '
28
30
django-version : ' 3.2'
29
- - python-version : ' 3.7 '
31
+ - python-version : ' 3.12 '
30
32
django-version : ' 5.1'
31
33
- python-version : ' 3.8'
32
34
django-version : ' 5.1'
33
35
- python-version : ' 3.9'
34
36
django-version : ' 5.1'
37
+ - python-version : ' 3.13.0-rc.1'
38
+ django-version : ' 3.2'
39
+ - python-version : ' 3.13.0-rc.1'
40
+ django-version : ' 4.2'
41
+ - python-version : ' 3.13.0-rc.1'
42
+ django-version : ' 5.0'
43
+
44
+ - django-version : ' 3.2'
45
+ drf-version : ' 3.15'
46
+ - django-version : ' 4.2'
47
+ drf-version : ' 3.14'
48
+ - django-version : ' 5.0'
49
+ drf-version : ' 3.14'
50
+ - django-version : ' 5.1'
51
+ drf-version : ' 3.14'
52
+
53
+ - django-version : ' 3.2'
54
+ filter-version : ' 24.0'
55
+ - django-version : ' 4.2'
56
+ filter-version : ' 23.5'
57
+ - django-version : ' 5.0'
58
+ filter-version : ' 23.5'
59
+ - django-version : ' 5.1'
60
+ filter-version : ' 23.5'
35
61
36
62
steps :
37
63
- uses : actions/checkout@v4
43
69
- name : Install Poetry
44
70
uses : snok/install-poetry@v1
45
71
with :
46
- version : 1.5.1
47
72
virtualenvs-create : true
48
73
virtualenvs-in-project : true
49
74
- name : Install Basic Dependencies
58
83
- name : Install enum-properties
59
84
run : |
60
85
poetry install -E properties
86
+ poetry run pip install -U "Django~=${{ matrix.django-version }}"
61
87
- name : Unit Tests w/ enum-properties
62
88
run : |
63
89
poetry run pytest --cov-fail-under=30
@@ -67,18 +93,21 @@ jobs:
67
93
- name : Install djangorestframework
68
94
run : |
69
95
poetry install -E djangorestframework
96
+ poetry run pip install -U "Django~=${{ matrix.django-version }}" "djangorestframework~=${{ matrix.drf-version }}"
70
97
- name : Run Unit Tests w/ djangorestframework
71
98
run : |
72
99
poetry run pytest --cov-fail-under=30
73
100
- name : Install django-filters
74
101
run : |
75
102
poetry install -E filters
103
+ poetry run pip install -U "Django~=${{ matrix.django-version }}" "djangorestframework~=${{ matrix.drf-version }}" "django-filter~=${{ matrix.filter-version }}"
76
104
- name : Run Unit Tests w/ django-filter
77
105
run : |
78
106
poetry run pytest --cov-fail-under=30
79
107
- name : Install all deps
80
108
run : |
81
109
poetry install -E all
110
+ poetry run pip install -U "Django~=${{ matrix.django-version }}" "djangorestframework~=${{ matrix.drf-version }}" "django-filter~=${{ matrix.filter-version }}"
82
111
- name : Run Full Unit Tests
83
112
run : |
84
113
poetry run pytest
0 commit comments