Skip to content

Commit

Permalink
Run tests against Python 3.12
Browse files Browse the repository at this point in the history
  • Loading branch information
Photonios committed Feb 7, 2024
1 parent c4aab40 commit 7708308
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 5 deletions.
22 changes: 20 additions & 2 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ executors:
version:
type: string
docker:
- image: python:<< parameters.version >>-buster
- image: python:<< parameters.version >>-bullseye
- image: postgres:13.0
environment:
POSTGRES_DB: 'psqlextra'
Expand All @@ -22,7 +22,7 @@ commands:
steps:
- run:
name: Install packages
command: apt-get update && apt-get install -y --no-install-recommends postgresql-client-11 libpq-dev build-essential git
command: apt-get update && apt-get install -y --no-install-recommends postgresql-client-13 libpq-dev build-essential git

- run:
name: Install Python packages
Expand Down Expand Up @@ -112,6 +112,18 @@ jobs:
name: Upload coverage report
command: coveralls

test-python312:
executor:
name: python
version: "3.12"
debian_release: "bullseye"
steps:
- checkout
- install-dependencies:
extra: test
- run-tests:
pyversion: 312

analysis:
executor:
name: python
Expand Down Expand Up @@ -188,6 +200,12 @@ workflows:
only: /.*/
branches:
only: /.*/
- test-python312:
filters:
tags:
only: /.*/
branches:
only: /.*/
- analysis:
filters:
tags:
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
| :package: | **PyPi** | [![PyPi](https://badge.fury.io/py/django-postgres-extra.svg)](https://pypi.python.org/pypi/django-postgres-extra) |
| :four_leaf_clover: | **Code coverage** | [![Coverage Status](https://coveralls.io/repos/github/SectorLabs/django-postgres-extra/badge.svg?branch=coveralls)](https://coveralls.io/github/SectorLabs/django-postgres-extra?branch=master) |
| <img src="https://cdn.iconscout.com/icon/free/png-256/django-1-282754.png" width="22px" height="22px" align="center" /> | **Django Versions** | 2.0, 2.1, 2.2, 3.0, 3.1, 3.2, 4.0, 4.1, 4.2, 5.0 |
| <img src="https://cdn3.iconfinder.com/data/icons/logos-and-brands-adobe/512/267_Python-512.png" width="22px" height="22px" align="center" /> | **Python Versions** | 3.6, 3.7, 3.8, 3.9, 3.10, 3.11 |
| <img src="https://cdn3.iconfinder.com/data/icons/logos-and-brands-adobe/512/267_Python-512.png" width="22px" height="22px" align="center" /> | **Python Versions** | 3.6, 3.7, 3.8, 3.9, 3.10, 3.11, 3.12 |
| <img src="https://pbs.twimg.com/profile_images/1152122059/psycopg-100_400x400.png" width="22px" height="22px" align="center" /> | **Psycopg Versions** | 2, 3 |
| :book: | **Documentation** | [Read The Docs](https://django-postgres-extra.readthedocs.io/en/master/) |
| :warning: | **Upgrade** | [Upgrade from v1.x](https://django-postgres-extra.readthedocs.io/en/master/major_releases.html#new-features)
Expand Down
4 changes: 2 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
envlist =
{py36,py37}-dj{20,21,22,30,31,32}-psycopg{28,29}
{py38,py39,py310}-dj{21,22,30,31,32,40}-psycopg{28,29}
{py38,py39,py310,py311}-dj{41}-psycopg{28,29}
{py310,py311}-dj{42,50}-psycopg{28,29,31}
{py38,py39,py310,py311,py312}-dj{41}-psycopg{28,29}
{py310,py311,py312}-dj{42,50}-psycopg{28,29,31}

[testenv]
deps =
Expand Down

0 comments on commit 7708308

Please sign in to comment.