43
43
options : --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
44
44
45
45
steps :
46
- - uses : actions/checkout@v1
46
+ - uses : actions/checkout@v4
47
47
- name : Set up Python ${{ matrix.python-version }}
48
48
49
49
uses : actions/setup-python@v2
@@ -101,7 +101,7 @@ jobs:
101
101
102
102
103
103
steps :
104
- - uses : actions/checkout@v1
104
+ - uses : actions/checkout@v4
105
105
- name : Set up Python ${{ matrix.python-version }}
106
106
107
107
uses : actions/setup-python@v2
@@ -148,7 +148,7 @@ jobs:
148
148
python-version : 3.9
149
149
150
150
steps :
151
- - uses : actions/checkout@v1
151
+ - uses : actions/checkout@v4
152
152
- name : Set up Python ${{ matrix.python-version }}
153
153
154
154
uses : actions/setup-python@v2
@@ -167,3 +167,138 @@ jobs:
167
167
run : python manage.py test
168
168
env :
169
169
DATABASE_URL : sqlite://localhost/testdb.sqlite
170
+
171
+ django-main-sqlite :
172
+ runs-on : ${{ matrix.os }}
173
+ strategy :
174
+ fail-fast : false
175
+ matrix :
176
+ python-version : ['3.11']
177
+ requirements-file : ['requirements_base.txt']
178
+ django-version : [
179
+ ' https://github.com/django/django/archive/main.tar.gz'
180
+ ]
181
+ os : [
182
+ ubuntu-20.04,
183
+ ]
184
+
185
+ steps :
186
+ - uses : actions/checkout@v4
187
+ - name : Set up Python ${{ matrix.python-version }}
188
+
189
+ uses : actions/setup-python@v4
190
+ with :
191
+ python-version : ${{ matrix.python-version }}
192
+ - name : Install dependencies
193
+ run : |
194
+ sudo apt install gettext gcc -y
195
+ python -m pip install --upgrade pip
196
+ pip install -r test_requirements/${{ matrix.requirements-file }}
197
+ pip install pytest ${{ matrix.django-version }}
198
+ python setup.py install
199
+
200
+ - name : Test with django test runner
201
+ run : python manage.py test
202
+ continue-on-error : true
203
+ env :
204
+ DATABASE_URL : sqlite://localhost/testdb.sqlite
205
+
206
+ django-main-postgres :
207
+ runs-on : ${{ matrix.os }}
208
+ strategy :
209
+ fail-fast : false
210
+ matrix :
211
+ python-version : ['3.11']
212
+ requirements-file : ['requirements_base.txt']
213
+ django-version : [
214
+ ' https://github.com/django/django/archive/main.tar.gz'
215
+ ]
216
+ os : [
217
+ ubuntu-20.04,
218
+ ]
219
+
220
+ services :
221
+ postgres :
222
+ image : postgres:13
223
+ env :
224
+ POSTGRES_USER : postgres
225
+ POSTGRES_PASSWORD : postgres
226
+ POSTGRES_DB : postgres
227
+ ports :
228
+ - 5432:5432
229
+ # needed because the postgres container does not provide a healthcheck
230
+ options : --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
231
+
232
+ steps :
233
+ - uses : actions/checkout@v4
234
+ - name : Set up Python ${{ matrix.python-version }}
235
+
236
+ uses : actions/setup-python@v2
237
+ with :
238
+ python-version : ${{ matrix.python-version }}
239
+ cache : ' pip'
240
+ - name : Install dependencies
241
+ run : |
242
+ sudo apt install gettext gcc -y
243
+ python -m pip install --upgrade pip
244
+ pip install -r test_requirements/${{ matrix.requirements-file }}
245
+ pip install pytest ${{ matrix.django-version }}
246
+ pip install -r test_requirements/databases.txt
247
+ python setup.py install
248
+
249
+ - name : Test with django test runner
250
+ run : |
251
+ python -c "from django import __version__ ; print(f'Django version {__version__}')"
252
+ python manage.py test
253
+ continue-on-error : true
254
+ env :
255
+ DATABASE_URL : postgres://postgres:postgres@127.0.0.1/postgres
256
+
257
+ django-main-mysql :
258
+ runs-on : ${{ matrix.os }}
259
+ strategy :
260
+ fail-fast : false
261
+ matrix :
262
+ python-version : ['3.11']
263
+ requirements-file : ['requirements_base.txt']
264
+ django-version : [
265
+ ' https://github.com/django/django/archive/main.tar.gz'
266
+ ]
267
+ os : [
268
+ ubuntu-20.04,
269
+ ]
270
+
271
+ services :
272
+ mysql :
273
+ image : mysql:8.0
274
+ env :
275
+ MYSQL_ALLOW_EMPTY_PASSWORD : yes
276
+ MYSQL_DATABASE : djangocms_test
277
+ ports :
278
+ - 3306:3306
279
+ options : --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3
280
+
281
+
282
+ steps :
283
+ - uses : actions/checkout@v4
284
+ - name : Set up Python ${{ matrix.python-version }}
285
+
286
+ uses : actions/setup-python@v2
287
+ with :
288
+ python-version : ${{ matrix.python-version }}
289
+ cache : ' pip'
290
+ - name : Install dependencies
291
+ run : |
292
+ sudo apt install gettext gcc -y
293
+ python -m pip install --upgrade pip
294
+ pip install -r test_requirements/${{ matrix.requirements-file }}
295
+ pip install pytest ${{ matrix.django-version }}
296
+ pip install -r test_requirements/databases.txt
297
+ python setup.py install
298
+
299
+ - name : Test with django test runner
300
+ run : |
301
+ python manage.py test
302
+ continue-on-error : true
303
+ env :
304
+ DATABASE_URL : mysql://root@127.0.0.1/djangocms_test
0 commit comments