Skip to content

Commit

Permalink
Update Python & Django versions in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
ewjoachim committed Aug 9, 2024
1 parent a6fcf1c commit c633605
Show file tree
Hide file tree
Showing 5 changed files with 31 additions and 41 deletions.
32 changes: 18 additions & 14 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,30 +16,34 @@ jobs:
strategy:
matrix:
include:
- name: Python 3.8 / Django 3.0
- name: Python 3.8 / Django 4.2
python_version: "3.8"
tox_env: py38-django30
tox_env: py38-django42

- name: Python 3.9 / Django 3.1
- name: Python 3.9 / Django 4.2
python_version: "3.9"
tox_env: py39-django31
tox_env: py39-django42

- name: Python 3.10 / Django 3.2
- name: Python 3.10 / Django 4.2
python_version: "3.10"
tox_env: py310-django32

- name: Python 3.10 / Django 4.0
python_version: "3.10"
tox_env: py310-django40

- name: Python 3.11 / Django 4.1
python_version: "3.11"
tox_env: py311-django41
tox_env: py310-django42

- name: Python 3.11 / Django 4.2
python_version: "3.11"
tox_env: py311-django42

- name: Python 3.12 / Django 4.2
python_version: "3.12"
tox_env: py312-django42

- name: Python 3.12 / Django 5.0
python_version: "3.12"
tox_env: py312-django50

- name: Python 3.12 / Django 5.1
python_version: "3.12"
tox_env: py312-django51

name: "${{ matrix.name }}"
runs-on: ubuntu-latest

Expand Down
4 changes: 2 additions & 2 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ Requirements
------------

+ **Postgresql only**
+ Django, tested from 2.2 to 4.2
+ With Python, tested from 3.8 to 3.11
+ Django, tested from 4.2 to 5.1
+ With Python, tested from 3.8 to 3.12

Documentation
-------------
Expand Down
2 changes: 1 addition & 1 deletion poetry.lock

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

15 changes: 3 additions & 12 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,23 +18,14 @@ classifiers = [
"License :: OSI Approved :: MIT License",
"Development Status :: 5 - Production/Stable",
"Framework :: Django",
"Framework :: Django :: 2.2",
"Framework :: Django :: 3.0",
"Framework :: Django :: 3.1",
"Framework :: Django :: 3.2",
"Framework :: Django :: 4.0",
"Framework :: Django :: 4.1",
"Framework :: Django :: 4.2",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Framework :: Django :: 5.0",
"Framework :: Django :: 5.1",
]

[tool.poetry.dependencies]
python = "^3.8"
django = "^2.2 || ^3.0 || ^4.0"
django = "*"

[tool.poetry.group.dev.dependencies]
build = "*"
Expand Down
19 changes: 7 additions & 12 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
[tox]
isolated_build = true
envlist =
py38-django30
py39-django31
py310-django{32,40}
py311-django{41,42}
py38-django42
py39-django42
py310-django42
py311-django42
py312-django{42,50,51}
linters
docs

Expand All @@ -16,16 +17,10 @@ setenv =
DATABASE_URL = {env:DATABASE_URL:postgres://postgres:password@127.0.0.1:5432/db}
commands_pre =
poetry install
django22: pip install psycopg2<2.9 # https://github.com/django/django/commit/837ffcfa681d0f65f444d881ee3d69aec23770be
django30: pip install psycopg2<2.9 # https://github.com/django/django/commit/837ffcfa681d0f65f444d881ee3d69aec23770be

django22: pip install Django==2.2.*
django30: pip install Django==3.0.*
django31: pip install Django==3.1.*
django32: pip install Django==3.2.*
django40: pip install Django==4.0.*
django41: pip install Django==4.1.*
django42: pip install Django==4.2.*
django50: pip install Django==5.0.*
django51: pip install Django==5.1.*
djangostable: pip install Django
commands =
poetry run pytest

0 comments on commit c633605

Please sign in to comment.