@@ -145,10 +145,9 @@ jobs:
145
145
django-version : ' Django~=3.2.0'
146
146
147
147
steps :
148
- - uses : actions/checkout@v2
149
- - uses : actions/setup-node@v2
148
+ - uses : actions/checkout@v3
150
149
- name : Set up Python ${{ matrix.python-version }}
151
- uses : actions/setup-python@v2
150
+ uses : actions/setup-python@v4
152
151
with :
153
152
python-version : ${{ matrix.python-version }}
154
153
@@ -212,10 +211,9 @@ jobs:
212
211
- 3306:3306
213
212
214
213
steps :
215
- - uses : actions/checkout@v2
216
- - uses : actions/setup-node@v2
214
+ - uses : actions/checkout@v3
217
215
- name : Set up Python ${{ matrix.python-version }}
218
- uses : actions/setup-python@v2
216
+ uses : actions/setup-python@v4
219
217
with :
220
218
python-version : ${{ matrix.python-version }}
221
219
@@ -280,10 +278,9 @@ jobs:
280
278
- 3306:3306
281
279
282
280
steps :
283
- - uses : actions/checkout@v2
284
- - uses : actions/setup-node@v2
281
+ - uses : actions/checkout@v3
285
282
- name : Set up Python ${{ matrix.python-version }}
286
- uses : actions/setup-python@v2
283
+ uses : actions/setup-python@v4
287
284
with :
288
285
python-version : ${{ matrix.python-version }}
289
286
@@ -302,3 +299,61 @@ jobs:
302
299
- name : Run Full Unit Tests
303
300
run : |
304
301
poetry run pytest --cov-fail-under=95
302
+
303
+ oracle :
304
+ runs-on : ubuntu-latest
305
+ env :
306
+ DATABASE : oracle
307
+ strategy :
308
+ matrix :
309
+ python-version : [ '3.7', '3.11']
310
+ django-version :
311
+ - ' Django~=3.2.0' # LTS April 2024
312
+ - ' Django~=4.2.0' # LTS April 2026
313
+ exclude :
314
+ - python-version : ' 3.7'
315
+ django-version : ' Django~=4.2.0'
316
+ - python-version : ' 3.11'
317
+ django-version : ' Django~=3.2.0'
318
+
319
+ services :
320
+ oracle :
321
+
322
+ image : gvenzl/oracle-free:latest
323
+
324
+ env :
325
+ ORACLE_PASSWORD : password
326
+ ORACLE_DATABASE : test
327
+
328
+ # Forward Oracle port
329
+ ports :
330
+ - 1521:1521
331
+
332
+ # Provide healthcheck script options for startup
333
+ options : >-
334
+ --health-cmd healthcheck.sh
335
+ --health-interval 10s
336
+ --health-timeout 5s
337
+ --health-retries 10
338
+
339
+ steps :
340
+ - uses : actions/checkout@v3
341
+ - name : Set up Python ${{ matrix.python-version }}
342
+ uses : actions/setup-python@v4
343
+ with :
344
+ python-version : ${{ matrix.python-version }}
345
+
346
+ - name : Install Poetry
347
+ uses : snok/install-poetry@v1
348
+ with :
349
+ virtualenvs-create : true
350
+ virtualenvs-in-project : true
351
+ - name : Install Dependencies
352
+ run : |
353
+ poetry config virtualenvs.in-project true
354
+ poetry run pip install --upgrade pip
355
+ poetry install -E all --with oracle
356
+ poetry run pip install -U "${{ matrix.django-version }}"
357
+ - name : Run Full Unit Tests
358
+ run : |
359
+ poetry run pytest --cov-fail-under=95
0 commit comments