Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update testing matrix to Django 5.0, Python 3.12, drop testing for ol… #190

Merged
merged 1 commit into from
May 16, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading