Skip to content

Commit

Permalink
update testing matrix to Django 5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
PetrDlouhy committed Apr 11, 2024
1 parent 279fefd commit f116b6b
Showing 1 changed file with 25 additions and 10 deletions.
35 changes: 25 additions & 10 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,18 +22,36 @@ jobs:

strategy:
matrix:
DJANGO_VERSION: ['3.2.*', '4.0.*', '4.1.*']
DJANGO_VERSION: ['3.2.*', '4.0.*', '4.1.*', '4.2.*', '5.0']
DB_ENGINE: [ 'postgres', 'mysql' ]
python-version: ['3.7', '3.8', '3.9', '3.10', '3.11']
python-version: ['3.7', '3.8', '3.9', '3.10', '3.11', '3.12']
exclude:
- DJANGO_VERSION: '4.1.*'
python-version: '3.7'
- DJANGO_VERSION: '4.0.*'
python-version: '3.7'
- DJANGO_VERSION: '3.2.*'
python-version: '3.11'
- DJANGO_VERSION: '3.2.*'
python-version: '3.12'

- DJANGO_VERSION: '4.0.*'
python-version: '3.7'
- DJANGO_VERSION: '4.0.*'
python-version: '3.11'
- DJANGO_VERSION: '4.0.*'
python-version: '3.12'

- DJANGO_VERSION: '4.1.*'
python-version: '3.7'
- DJANGO_VERSION: '4.2.*'
python-version: '3.12'

- DJANGO_VERSION: '4.2.*'
python-version: '3.7'

- DJANGO_VERSION: '5.0.*'
python-version: '3.7'
- DJANGO_VERSION: '5.0.*'
python-version: '3.8'
- DJANGO_VERSION: '5.0.*'
python-version: '3.9'
fail-fast: false

services:
Expand All @@ -49,7 +67,7 @@ jobs:
ports:
- 5432:5432
mysql:
image: mysql:5.7
image: mysql:8.3
env:
MYSQL_DATABASE: test_db
MYSQL_USER: db_user
Expand Down Expand Up @@ -83,9 +101,6 @@ jobs:
pip install Django==${{ matrix.DJANGO_VERSION }}
pip install codecov
- name: Install django-jsonfield for older Django versions
if: ${{ matrix.DJANGO_VERSION == '2.2.*' || matrix.DJANGO_VERSION == '3.0.*' }}
run: pip install django-jsonfield
- name: Testing
run: |
if [ "$matrix.DB_ENGINE" = 'mysql' ]; then
Expand Down

0 comments on commit f116b6b

Please sign in to comment.