Skip to content

Commit

Permalink
add support for Django 5
Browse files Browse the repository at this point in the history
  • Loading branch information
tomwojcik authored Nov 5, 2023
1 parent 28b3f9a commit 317c210
Show file tree
Hide file tree
Showing 2 changed files with 51 additions and 10 deletions.
60 changes: 50 additions & 10 deletions .github/workflows/test-suite.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,22 +5,62 @@ on:
- master
pull_request:


jobs:
test:
name: Python ${{ matrix.python-version }} - Django ${{ matrix.django-version }} - DRF ${{ matrix.drf-version }}
strategy:
fail-fast: false
matrix:
python-version: [ 3.8, 3.9, '3.10', 3.11]
poetry-version: [ 1.3.2 ]
django-version: [ 3.2.18, 4.1, 4.2 ]
drf-version: [ 3.12, 3.14 ]
os: [ ubuntu-latest ]
exclude:
# not compatible
- django-version: 4.2
include:
# django 3.2, drf 3.12 and 3.14, py3.8-3.11
- python-version: 3.8
django-version: 3.2.18
drf-version: 3.12
- python-version: 3.8
django-version: 3.2.18
drf-version: 3.14
- python-version: 3.9
django-version: 3.2.18
drf-version: 3.12
- python-version: 3.9
django-version: 3.2.18
drf-version: 3.14
- python-version: '3.10'
django-version: 3.2.18
drf-version: 3.12
- python-version: '3.10'
django-version: 3.2.18
drf-version: 3.14
- python-version: 3.11
django-version: 3.2.18
drf-version: 3.12
- python-version: 3.11
django-version: 3.2.18
drf-version: 3.14
# django 4.2, drf 3.14, py3.8-3.11
- python-version: 3.8
django-version: 4.2
drf-version: 3.14
- python-version: 3.9
django-version: 4.2
drf-version: 3.14
- python-version: '3.10'
django-version: 4.2
drf-version: 3.14
- python-version: 3.11
django-version: 4.2
drf-version: 3.14
# django 5, drf 3.14, py3.10-3.11
- python-version: '3.10'
django-version: "5.0b1"
drf-version: 3.14
- python-version: 3.11
django-version: "5.0b1"
drf-version: 3.14

runs-on: ${{ matrix.os }}

runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- uses: actions/[email protected]
Expand All @@ -29,7 +69,7 @@ jobs:
- name: Run image
uses: abatilo/actions-poetry@v2
with:
poetry-version: ${{ matrix.poetry-version }}
poetry-version: 1.3.2
- name: Install dependencies
run: poetry install --only main,test --all-extras
- name: Upgrade django version
Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ classifiers = [
"Framework :: Django :: 4.0",
"Framework :: Django :: 4.1",
"Framework :: Django :: 4.2",
"Framework :: Django :: 5.0", # 5.0b1 in Djoser test suite
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
Expand Down

0 comments on commit 317c210

Please sign in to comment.