Skip to content

Commit 6730a6b

Browse files
committed
Add Python 3.13 and Django 5.1 to test matrix, drop unsupported versions
1 parent 01a506c commit 6730a6b

File tree

3 files changed

+12
-27
lines changed

3 files changed

+12
-27
lines changed

.github/workflows/ci.yml

Lines changed: 6 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -9,21 +9,13 @@ jobs:
99

1010
strategy:
1111
matrix:
12-
python: ["3.8", "3.9", "3.10", "3.11", "3.12"]
13-
django: ["3.2", "4.0", "4.1", "4.2", "5.0"]
12+
python: ["3.9", "3.10", "3.11", "3.12", "3.13"]
13+
django: ["4.2", "5.0", "5.1"]
1414
exclude:
15-
- python: "3.11"
16-
django: "3.2"
17-
- python: "3.12"
18-
django: "3.2"
19-
- python: "3.11"
20-
django: "4.0"
21-
- python: "3.12"
22-
django: "4.0"
23-
- python: "3.8"
24-
django: "5.0"
2515
- python: "3.9"
2616
django: "5.0"
17+
- python: "3.9"
18+
django: "5.1"
2719
database_url:
2820
- postgres://runner:password@localhost/project
2921
- mysql://root:[email protected]/project
@@ -45,11 +37,11 @@ jobs:
4537
steps:
4638
- name: Start MySQL
4739
run: sudo systemctl start mysql.service
48-
- uses: actions/checkout@v2
40+
- uses: actions/checkout@v4
4941
- name: Install system Python build deps for psycopg2
5042
run: sudo apt-get install python3-dev python3.11-dev
5143
- name: Set up Python ${{ matrix.python }}
52-
uses: actions/setup-python@v2
44+
uses: actions/setup-python@v5
5345
with:
5446
python-version: ${{ matrix.python }}
5547
- name: Upgraded pip

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ Simple database-backed job queue. Jobs are defined in your settings, and are pro
77
Asynchronous tasks are run via a *job queue*. This system is designed to support multi-step job workflows.
88

99
Supported and tested against:
10-
- Django 3.2, 4.0, 4.1, 4.2, 5.0
11-
- Python 3.8, 3.9, 3.10, 3.11, 3.12
10+
- Django 4.2, 5.0, 5.1
11+
- Python 3.9, 3.10, 3.11, 3.12, 3.13
1212

1313
## Getting Started
1414

django_dbq/tests.py

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
from datetime import datetime, timedelta
1+
from datetime import datetime, timedelta, timezone as datetime_timezone
22
import mock
33

44
import freezegun
5-
from django.core.management import call_command, CommandError
5+
from django.core.management import call_command
66
from django.test import TestCase
77
from django.test.utils import override_settings
88
from django.utils import timezone
@@ -13,14 +13,6 @@
1313
from io import StringIO
1414

1515

16-
try:
17-
utc = timezone.utc
18-
except AttributeError:
19-
from datetime import timezone as datetime_timezone
20-
21-
utc = datetime_timezone.utc
22-
23-
2416
def test_task(job=None):
2517
pass # pragma: no cover
2618

@@ -253,7 +245,8 @@ def test_gets_jobs_in_priority_and_date_order(self):
253245
def test_ignores_jobs_until_run_after_is_in_the_past(self):
254246
job_1 = Job.objects.create(name="testjob")
255247
job_2 = Job.objects.create(
256-
name="testjob", run_after=datetime(2021, 11, 4, 8, tzinfo=utc)
248+
name="testjob",
249+
run_after=datetime(2021, 11, 4, 8, tzinfo=datetime_timezone.utc),
257250
)
258251

259252
with freezegun.freeze_time(datetime(2021, 11, 4, 7)):

0 commit comments

Comments
 (0)