@@ -2,69 +2,68 @@ name: Test
2
2
3
3
on :
4
4
push :
5
- branches : [ master ]
5
+ branches : [master]
6
6
pull_request :
7
- branches : [ master ]
7
+ branches : [master]
8
8
9
9
permissions :
10
10
contents : read # to fetch code (actions/checkout)
11
11
12
12
jobs :
13
-
14
13
build :
15
14
runs-on : ubuntu-latest
16
15
name : Python${{ matrix.python-version }}/Django${{ matrix.django-version }}
17
16
strategy :
18
17
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 "]
21
20
22
21
steps :
23
- - uses : actions/checkout@v3
22
+ - uses : actions/checkout@v3
24
23
25
- - name : Set up Python ${{ matrix.python-version }}
26
-
27
- with :
28
- python-version : ${{ matrix.python-version }}
24
+ - name : Set up Python ${{ matrix.python-version }}
25
+
26
+ with :
27
+ python-version : ${{ matrix.python-version }}
29
28
30
- - name : Start Redis
31
- uses :
supercharge/[email protected]
29
+ - name : Start Redis
30
+ uses :
supercharge/[email protected]
32
31
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
38
37
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=.
42
41
43
42
mypy :
44
43
runs-on : ubuntu-latest
45
44
name : Type check
46
45
47
46
steps :
48
- - uses : actions/checkout@v3
47
+ - uses : actions/checkout@v3
48
+
49
+ - name : Set up Python 3.8
50
+
51
+ with :
52
+ python-version : " 3.8"
49
53
50
- - name : Set up Python 3.8
51
-
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
54
58
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
59
64
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