@@ -15,36 +15,29 @@ jobs:
15
15
name : " flake8 on code"
16
16
steps :
17
17
- uses : actions/checkout@v4
18
- - name : Setup Python
19
- uses : actions/setup-python@v5
18
+
19
+ - name : " Setup Python, Poetry and Dependencies"
20
+ uses : dsoftwareinc/setup-python-poetry-action@v1
20
21
with :
21
- python-version : " 3.11"
22
- cache-dependency-path : poetry.lock
23
- - name : Install poetry and dependencies
24
- shell : bash
25
- run : |
26
- python -m pip --quiet install poetry
27
- echo "$HOME/.poetry/bin" >> $GITHUB_PATH
28
- poetry install
22
+ python-version : " 3.12"
23
+ poetry-version : " 1.8.3"
24
+
29
25
- name : Run flake8
30
26
shell : bash
31
27
run : |
32
- poetry run flake8 scheduler/
28
+ poetry run flake8
33
29
34
30
testRedis :
35
31
needs : [ 'flake8' ]
36
32
runs-on : ubuntu-latest
37
33
strategy :
38
34
max-parallel : 6
39
35
matrix :
40
- python-version : [ '3.9', '3.10', '3.11', '3.12' ]
41
- django-version : [ '4.2.13', '5.0.6' ]
42
- exclude :
43
- - python-version : ' 3.9'
44
- django-version : ' 5.0.6'
36
+ python-version : [ '3.10', '3.11', '3.12', '3.13' ]
37
+ django-version : [ '5.0.6', '5.1b1' ]
45
38
include :
46
- - python-version : ' 3.11 '
47
- django-version : ' 4.2.13 '
39
+ - python-version : ' 3.12 '
40
+ django-version : ' 5.0.6 '
48
41
coverage : yes
49
42
services :
50
43
redis :
@@ -60,12 +53,15 @@ jobs:
60
53
version : ${{ steps.getVersion.outputs.VERSION }}
61
54
steps :
62
55
- uses : actions/checkout@v4
63
- - name : Set up Python ${{ matrix.python-version }}
64
- uses : actions/setup-python@v5
56
+
57
+ - name : " Setup Python, Poetry and Dependencies"
58
+ uses : dsoftwareinc/setup-python-poetry-action@v1
65
59
with :
66
- python-version : ${{ matrix.python-version }}
67
- cache-dependency-path : poetry.lock
68
- - name : Install poetry and dependencies
60
+ python-version : " ${{ matrix.python-version }}"
61
+ poetry-version : " 1.8.3"
62
+ poetry-install-additional-args : " -E yaml"
63
+
64
+ - name : Install django version
69
65
shell : bash
70
66
run : |
71
67
python -m pip --quiet install poetry
79
75
run : |
80
76
VERSION=$(poetry version -s --no-ansi -n)
81
77
echo "VERSION=$VERSION" >> $GITHUB_OUTPUT
78
+
82
79
- name : Check for missing migrations
83
80
run : |
84
81
cd testproject
@@ -130,32 +127,20 @@ jobs:
130
127
strategy :
131
128
max-parallel : 6
132
129
matrix :
133
- python-version : [ '3.9', '3.10', '3.11', '3.12' ]
134
- django-version : [ '4.2.13', '5.0.6' ]
135
- exclude :
136
- - python-version : ' 3.9'
137
- django-version : ' 5.0.6'
138
- include :
139
- - python-version : ' 3.11'
140
- django-version : ' 4.2.13'
141
- coverage : yes
130
+ python-version : [ '3.10', '3.11', '3.12', '3.13' ]
131
+ django-version : [ '5.0.6', '5.1b1' ]
142
132
143
133
outputs :
144
134
version : ${{ steps.getVersion.outputs.VERSION }}
145
135
steps :
146
136
- uses : actions/checkout@v4
147
- - name : Set up Python ${{ matrix.python-version }}
148
- uses : actions/setup-python@v5
137
+
138
+ - name : " Setup Python, Poetry and Dependencies"
139
+ uses : dsoftwareinc/setup-python-poetry-action@v1
149
140
with :
150
- python-version : ${{ matrix.python-version }}
151
- cache-dependency-path : poetry.lock
152
- - name : Install poetry and dependencies
153
- shell : bash
154
- run : |
155
- python -m pip --quiet install poetry
156
- echo "$HOME/.poetry/bin" >> $GITHUB_PATH
157
- poetry install -E yaml
158
- poetry run pip install django==${{ matrix.django-version }}
141
+ python-version : " ${{ matrix.python-version }}"
142
+ poetry-version : " 1.8.3"
143
+ poetry-install-additional-args : " -E yaml"
159
144
160
145
- name : Get version
161
146
id : getVersion
@@ -167,6 +152,7 @@ jobs:
167
152
run : |
168
153
cd testproject
169
154
poetry run python manage.py makemigrations --check
155
+
170
156
- name : Run Tests without coverage
171
157
run : |
172
158
cd testproject
0 commit comments