Skip to content

Commit

Permalink
chore: Add Django 5.0 and Python 3.12 to the testing (#487)
Browse files Browse the repository at this point in the history
* chore: Add Django 5.0 and Python 3.12 to the testing

* what-python-version-can-i-use-with-django

* Do not test Django 4.1 on Python 3.12

* Upgrade setuptools on Python 3.12

* pyyaml = { version = "^6.0.1", python = "^3.12" }

* pyyaml = { version = "^6.0.1", python = "^3.12" }

* poetry lock --no-update
  • Loading branch information
cclauss authored Jan 10, 2024
1 parent 141a274 commit 3ca27bb
Show file tree
Hide file tree
Showing 3 changed files with 80 additions and 57 deletions.
21 changes: 16 additions & 5 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# https://docs.djangoproject.com/en/stable/faq/install/#what-python-version-can-i-use-with-django
name: test

"on": [push, pull_request, workflow_dispatch]
Expand All @@ -7,9 +8,19 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11"]
django-version: ["3.2", "4.1", "4.2"]

python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
django-version: ["3.2", "4.1", "4.2", "5.0"]
exclude:
- django-version: "3.2"
python-version: "3.11"
- django-version: "3.2"
python-version: "3.12"
- django-version: "4.1"
python-version: "3.12"
- django-version: "5.0"
python-version: "3.8"
- django-version: "5.0"
python-version: "3.9"
steps:
- uses: actions/checkout@v4

Expand All @@ -34,8 +45,8 @@ jobs:
- name: Install dependencies
run: |
poetry install
poetry run pip install -U pip
poetry run pip install -U "django==${{ matrix.django-version }}.*"
poetry run pip install --upgrade pip
poetry run pip install --upgrade "django==${{ matrix.django-version }}.*"
- name: Run tests
run: |
Expand Down
111 changes: 60 additions & 51 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 3ca27bb

Please sign in to comment.