Skip to content

Commit

Permalink
update testing matrix to Django 5.0, Python 3.12, drop testing for ol…
Browse files Browse the repository at this point in the history
…d versions
  • Loading branch information
PetrDlouhy committed May 16, 2024
1 parent 16e34cf commit 50ff9fe
Showing 1 changed file with 14 additions and 20 deletions.
34 changes: 14 additions & 20 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,30 +22,28 @@ jobs:

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

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

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

- DJANGO_VERSION: '4.0.*'
python-version: '3.7'
- DJANGO_VERSION: '3.1.*'
python-version: '3.10'
- DJANGO_VERSION: '3.0.*'
python-version: '3.10'
- DJANGO_VERSION: '2.2.*'
python-version: '3.10'
python-version: '3.12'
- DJANGO_VERSION: '4.0.*'
python-version: '3.11'
- DJANGO_VERSION: '4.0.*'
python-version: '3.7'

- DJANGO_VERSION: '3.2.*'
python-version: '3.12'
- DJANGO_VERSION: '3.2.*'
python-version: '3.11'
- DJANGO_VERSION: '3.1.*'
python-version: '3.11'
- DJANGO_VERSION: '3.0.*'
python-version: '3.11'
- DJANGO_VERSION: '2.2.*'
python-version: '3.11'
fail-fast: false
services:
Expand Down Expand Up @@ -80,10 +78,6 @@ jobs:
pip install -q Django==${{ matrix.DJANGO_VERSION }}
pip install codecov
- name: Install django-sequences and psycopg2 for older Django versions
if: ${{ matrix.DJANGO_VERSION == '2.2.*' || matrix.DJANGO_VERSION == '3.0.*' }}
run: pip install "django-sequences<2.7" "psycopg2<2.9"

- name: Run migration check
run: |
OUTPUT=$(python demo/manage.py makemigrations --dry-run plans)
Expand All @@ -100,7 +94,7 @@ jobs:
# Run tests for sample app used for testing extensibility
PYTHONPATH="." MANAGE_PY_PATH="demo/manage.py" SAMPLE_APP=1 demo/manage.py test example
case "${{ matrix.DJANGO_VERSION }},${{ matrix.python-version }}" in
2.2.*,3.7|3.0.*,3.7|3.1.*,3.7|3.2.*,3.7|4.0.*,3.8|4.0.*,3.9|4.0.*,3.10) # Django runs with warnings in this python version
3.2.*,3.7|4.0.*,3.8|4.0.*,3.9|4.0.*,3.10) # Django runs with warnings in this python version
PYTHONPATH="." MANAGE_PY_PATH="demo/manage.py" coverage run demo/manage.py test plans
;;
*)
Expand Down

0 comments on commit 50ff9fe

Please sign in to comment.