Skip to content

Commit aba2916

Browse files
authored
Test on Python 3.13 and Django 5.2 (#704)
* Test on Python 3.13 and Django 5.2 * Test only on Django >= 4.2
1 parent 5e94454 commit aba2916

File tree

1 file changed

+39
-40
lines changed

1 file changed

+39
-40
lines changed

.github/workflows/test.yml

Lines changed: 39 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -2,69 +2,68 @@ name: Test
22

33
on:
44
push:
5-
branches: [ master ]
5+
branches: [master]
66
pull_request:
7-
branches: [ master ]
7+
branches: [master]
88

99
permissions:
1010
contents: read # to fetch code (actions/checkout)
1111

1212
jobs:
13-
1413
build:
1514
runs-on: ubuntu-latest
1615
name: Python${{ matrix.python-version }}/Django${{ matrix.django-version }}
1716
strategy:
1817
matrix:
19-
python-version: ["3.10", "3.11", "3.12"]
20-
django-version: ["3.2.23", "4.0.8", "4.1.3", "4.2", "5.0", "5.1"]
18+
python-version: ["3.10", "3.11", "3.12", "3.13"]
19+
django-version: ["4.2", "5.0", "5.1", "5.2"]
2120

2221
steps:
23-
- uses: actions/checkout@v3
22+
- uses: actions/checkout@v3
2423

25-
- name: Set up Python ${{ matrix.python-version }}
26-
uses: actions/[email protected]
27-
with:
28-
python-version: ${{ matrix.python-version }}
24+
- name: Set up Python ${{ matrix.python-version }}
25+
uses: actions/[email protected]
26+
with:
27+
python-version: ${{ matrix.python-version }}
2928

30-
- name: Start Redis
31-
uses: supercharge/[email protected]
29+
- name: Start Redis
30+
uses: supercharge/[email protected]
3231

33-
- name: Install dependencies
34-
run: |
35-
python -m pip install --upgrade pip
36-
pip install django==${{ matrix.django-version }} \
37-
redis django-redis pyyaml rq sentry-sdk
32+
- name: Install dependencies
33+
run: |
34+
python -m pip install --upgrade pip
35+
pip install django==${{ matrix.django-version }} \
36+
redis django-redis pyyaml rq sentry-sdk
3837
39-
- name: Run Test
40-
run: |
41-
`which django-admin` test django_rq --settings=django_rq.tests.settings --pythonpath=.
38+
- name: Run Test
39+
run: |
40+
`which django-admin` test django_rq --settings=django_rq.tests.settings --pythonpath=.
4241
4342
mypy:
4443
runs-on: ubuntu-latest
4544
name: Type check
4645

4746
steps:
48-
- uses: actions/checkout@v3
47+
- uses: actions/checkout@v3
48+
49+
- name: Set up Python 3.8
50+
uses: actions/[email protected]
51+
with:
52+
python-version: "3.8"
4953

50-
- name: Set up Python 3.8
51-
uses: actions/[email protected]
52-
with:
53-
python-version: "3.8"
54+
- name: Install dependencies
55+
run: |
56+
python -m pip install --upgrade pip
57+
pip install django-stubs[compatible-mypy] rq types-redis
5458
55-
- name: Install dependencies
56-
run: |
57-
python -m pip install --upgrade pip
58-
pip install django-stubs[compatible-mypy] rq types-redis
59+
- name: Run mypy
60+
continue-on-error: true
61+
id: mypy
62+
run: |
63+
mypy django_rq
5964
60-
- name: Run mypy
61-
continue-on-error: true
62-
id: mypy
63-
run: |
64-
mypy django_rq
65-
66-
- name: Set Status
67-
if: steps.mypy.outcome == 'failure'
68-
run: |
69-
echo "Mypy found errors, marking check as neutral"
70-
exit 78 # Exit code 78 results in a neutral check
65+
- name: Set Status
66+
if: steps.mypy.outcome == 'failure'
67+
run: |
68+
echo "Mypy found errors, marking check as neutral"
69+
exit 78 # Exit code 78 results in a neutral check

0 commit comments

Comments
 (0)