Skip to content

Commit

Permalink
chore: Start testing with Postgres 12-17 and Python 3.13, dropped sup…
Browse files Browse the repository at this point in the history
…port for Python 3.8
  • Loading branch information
edgarrmondragon committed Nov 4, 2024
1 parent 9ed9284 commit acf4ca2
Show file tree
Hide file tree
Showing 7 changed files with 318 additions and 277 deletions.
15 changes: 14 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,24 @@ jobs:
fail-fast: false
matrix:
python-version:
- "3.13"
- "3.12"
- "3.11"
- "3.10"
- "3.9"
- "3.8"
postgres-version:
- "17"
include:
- python-version: "3.13"
postgres-version: "12"
- python-version: "3.13"
postgres-version: "13"
- python-version: "3.13"
postgres-version: "14"
- python-version: "3.13"
postgres-version: "15"
- python-version: "3.13"
postgres-version: "16"

steps:
- name: Checkout code
Expand Down
27 changes: 27 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -136,3 +136,30 @@ dmypy.json

# Pyre type checker
.pyre/

# General
.DS_Store
.AppleDouble
.LSOverride

# Icon must end with two \r
Icon

# Thumbnails
._*

# Files that might appear in the root of a volume
.DocumentRevisions-V100
.fseventsd
.Spotlight-V100
.TemporaryItems
.Trashes
.VolumeIcon.icns
.com.apple.timemachine.donotpresent

# Directories potentially created on remote AFP share
.AppleDB
.AppleDesktop
Network Trash Folder
Temporary Items
.apdisk
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM postgres:16
FROM postgres:${POSTGRES_VERSION:-latest}

RUN apt-get update
RUN apt-mark hold locales
Expand Down
6 changes: 3 additions & 3 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ services:
- inner

postgres_no_ssl:
image: postgres:latest
image: postgres:${POSTGRES_VERSION:-latest}
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
Expand All @@ -30,7 +30,7 @@ services:
- "5432:5432"

postgresdb:
image: postgres:13.0
image: postgres:${POSTGRES_VERSION:-latest}
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
Expand All @@ -40,7 +40,7 @@ services:
ipv4_address: 10.5.0.5

postgres_ssl:
image: postgres:16
image: postgres:${POSTGRES_VERSION:-latest}
command: postgres -c ssl=on -c ssl_cert_file=/var/lib/postgresql/server.crt -c ssl_key_file=/var/lib/postgresql/server.key -c ssl_ca_file=/var/lib/postgresql/ca.crt -c hba_file=/var/lib/postgresql/pg_hba.conf
environment:
POSTGRES_USER: postgres
Expand Down
532 changes: 266 additions & 266 deletions poetry.lock

Large diffs are not rendered by default.

11 changes: 6 additions & 5 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@ classifiers = [
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: Implementation :: CPython",
]
packages = [
Expand All @@ -33,7 +33,7 @@ packages = [


[tool.poetry.dependencies]
python = ">=3.8.1"
python = ">=3.9"
psycopg2-binary = "2.9.10"
sqlalchemy = "<3"
sshtunnel = "0.4.0"
Expand Down Expand Up @@ -61,7 +61,7 @@ extras = ["testing"]

[tool.mypy]
exclude = "tests"
python_version = "3.12"
python_version = "3.13"
warn_unused_configs = true
warn_unused_ignores = true

Expand All @@ -73,8 +73,8 @@ module = [

[build-system]
requires = [
"poetry-core==1.9.0",
"poetry-dynamic-versioning==1.4.0",
"poetry-core==1.9.1",
"poetry-dynamic-versioning==1.4.1",
]
build-backend = "poetry_dynamic_versioning.backend"

Expand All @@ -88,6 +88,7 @@ vcs = "git"
style = "pep440"

[tool.ruff]
target-version = "py39"

[tool.ruff.lint]
select = [
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ allowlist_externals = poetry
[testenv:pytest]
# Run the python tests.
# To execute, run `tox -e pytest`
envlist = py38, py39, py310, py311, py312
envlist = py3{9,10,11,12,13}
commands =
poetry install -v
poetry run pytest
Expand Down

0 comments on commit acf4ca2

Please sign in to comment.