Skip to content

Commit

Permalink
Add python 3.12 to test matrix; bump django 5.0 release
Browse files Browse the repository at this point in the history
  • Loading branch information
mfogel committed Nov 22, 2023
1 parent 5f42663 commit 2bb040c
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 9 deletions.
24 changes: 15 additions & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: "3.11"
python-version: "3.12"

- name: Install Poetry
uses: snok/install-poetry@v1
Expand All @@ -29,7 +29,7 @@ jobs:
uses: actions/cache@v3
with:
path: .venv
key: venv-py3.11-${{ hashFiles('poetry.lock') }}
key: venv-py3.12-${{ hashFiles('poetry.lock') }}

- name: Install dependencies
if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true'
Expand All @@ -55,22 +55,28 @@ jobs:
fail-fast: false
matrix:
# https://docs.djangoproject.com/en/4.1/faq/install/#what-python-version-can-i-use-with-django
python-version: ["3.8", "3.9", "3.10", "3.11"]
django-version: ["3.2", "4.0", "4.1", "4.2", "5.0a"]
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
django-version: ["3.2", "4.0", "4.1", "4.2", "5.0rc1"]
db-engine: [sqlite, postgres]
tz-engine: [pytz, zoneinfo]
exclude:
- django-version: "3.2"
python-version: "3.11"
- django-version: "3.2"
python-version: "3.12"
- django-version: "3.2"
tz-engine: zoneinfo
- django-version: "4.0"
python-version: "3.11"
- django-version: "5.0a"
- django-version: "4.0"
python-version: "3.12"
- django-version: "4.1"
python-version: "3.12"
- django-version: "5.0rc1"
python-version: "3.8"
- django-version: "5.0a"
- django-version: "5.0rc1"
python-version: "3.9"
- django-version: "5.0a"
- django-version: "5.0rc1"
tz-engine: pytz

env:
Expand Down Expand Up @@ -175,7 +181,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: "3.11"
python-version: "3.12"

- name: Install Poetry
uses: snok/install-poetry@v1
Expand All @@ -188,7 +194,7 @@ jobs:
uses: actions/cache@v3
with:
path: .venv
key: venv-py3.11-${{ hashFiles('poetry.lock') }}
key: venv-py3.12-${{ hashFiles('poetry.lock') }}

- name: Install dependencies
if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true'
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,7 @@ poetry run pytest
#### `main` (unreleased!)

- Add support for django 5.0
- Add support for python 3.12
- Fix issue with `Factory` timezone on some BSD systems ([#114](https://github.com/mfogel/django-timezone-field/issues/114))

#### 6.0.1 (2023-09-07)
Expand Down

0 comments on commit 2bb040c

Please sign in to comment.