Skip to content

Commit

Permalink
Add Python 3.13 and Django 5.1 testing (#255)
Browse files Browse the repository at this point in the history
* Add Python 3.13 and Django 5.1 testing
* Upgrade to modern actions
  • Loading branch information
palfrey authored Oct 10, 2024
1 parent 99128b5 commit 08d9cf0
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 12 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Set up Python
uses: actions/setup-python@v2
uses: actions/setup-python@v5
with:
python-version: '3.10'

Expand Down
20 changes: 11 additions & 9 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12"]
django-version: ["3.2", "4.2", "5.0"]
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12", "3.13"]
django-version: ["3.2", "4.2", "5.1"]
exclude:
# Python 3.7 is not compatible with 4.1
- python-version: "3.7"
Expand All @@ -17,19 +17,21 @@ jobs:
django-version: "3.2"
- python-version: "3.12"
django-version: "3.2"
# django 5.0 is not compatible with python 3.9 or lower
- python-version: "3.13"
django-version: "3.2"
# django 5.x is not compatible with python 3.9 or lower
- python-version: "3.7"
django-version: "5.0"
django-version: "5.1"
- python-version: "3.8"
django-version: "5.0"
django-version: "5.1"
- python-version: "3.9"
django-version: "5.0"
django-version: "5.1"

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'
Expand All @@ -51,7 +53,7 @@ jobs:
coverage report
coverage xml
- uses: codecov/codecov-action@v3
- uses: codecov/codecov-action@v4

- name: Check types installation
run: |
Expand Down
3 changes: 2 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"Framework :: Django",
"Framework :: Django :: 3.2",
"Framework :: Django :: 4.2",
"Framework :: Django :: 5.0",
"Framework :: Django :: 5.1",
"Intended Audience :: Developers",
"License :: OSI Approved :: BSD License",
"Operating System :: OS Independent",
Expand All @@ -46,5 +46,6 @@
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
],
)

0 comments on commit 08d9cf0

Please sign in to comment.