Skip to content

Commit 01a12ef

Browse files
authored
CI: Add Django 4.2 to typecheck and update other Django versions (#1455)
* Updated the default Django version in typecheck_tests to 4.2. * Made the typecheck_tests.py script executable and added a shebang line.
1 parent 4ab0159 commit 01a12ef

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed

.github/workflows/test.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,10 +69,12 @@ jobs:
6969
strategy:
7070
matrix:
7171
python-version: ['3.8', '3.9', '3.10']
72-
django-version: ['3.2', '4.0']
72+
django-version: ['3.2', '4.2']
7373
include:
7474
- python-version: '3.7'
7575
django-version: '2.2'
76+
- python-version: '3.11'
77+
django-version: '4.0'
7678
- python-version: '3.11'
7779
django-version: '4.1'
7880
steps:

scripts/typecheck_tests.py

100644100755
Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#!/usr/bin/env python
12
import itertools
23
import shutil
34
import subprocess
@@ -12,12 +13,13 @@
1213
from scripts.paths import DJANGO_SOURCE_DIRECTORY, PROJECT_DIRECTORY
1314

1415
DJANGO_COMMIT_REFS = {
15-
"2.2": "44e7cca62382f2535ed0f5d2842b433f0bd23a57",
16-
"3.2": "0153a63a674937e4a56d9d5e4ca2d629b011fbde",
17-
"4.0": "67d0c4644acfd7707be4a31e8976f865509b09ac",
18-
"4.1": "7dfd29b84e5a27d61ae62cb5ed9122d5a99ee1be",
16+
"2.2": "2a62cdcfec85938f40abb2e9e6a9ff497e02afe8",
17+
"3.2": "007e46d815063d598e0d3db78bfb371100e5c61c",
18+
"4.0": "ef62a3a68c9d558486145a42c0d71ea9a76add9e",
19+
"4.1": "491dccec1aa10e829539e4e4fcd8cca606a57ebc",
20+
"4.2": "879e5d587b84e6fc961829611999431778eb9f6a",
1921
}
20-
DEFAULT_DJANGO_VERSION = "3.2"
22+
DEFAULT_DJANGO_VERSION = "4.2"
2123

2224
_DictToSearch = DefaultDict[str, DefaultDict[Union[str, Pattern[str]], int]]
2325

0 commit comments

Comments
 (0)