Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 10 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,22 @@ jobs:
strategy:
matrix:
os: [ ubuntu-latest, windows-latest, macos-latest ]
python-version: [ "3.14" ]
python-version: [ "3.14", "3.15", "3.15t" ]
uv-resolution:
- highest
include:
- os: ubuntu-latest
python-version: "3.14"
database: postgres
database-url: postgresql+psycopg://sqlmodel:sqlmodel@127.0.0.1:15432/sqlmodel_test
- os: ubuntu-latest
python-version: "3.15"
database: postgres
database-url: postgresql+psycopg://sqlmodel:sqlmodel@127.0.0.1:15432/sqlmodel_test
- os: ubuntu-latest
python-version: "3.15t"
database: mysql
database-url: mysql+pymysql://sqlmodel:sqlmodel@127.0.0.1:13306/sqlmodel_test
- os: ubuntu-latest
python-version: "3.10"
uv-resolution: lowest-direct
Expand Down Expand Up @@ -89,7 +97,7 @@ jobs:
with:
limit-access-to-actor: true
- name: Install Dependencies
run: uv sync --no-dev --group tests
run: uv sync --no-dev --group tests ${{ matrix.database == 'postgres' && '--group tests-postgres' || '' }}
- name: Start Database
if: matrix.database
run: docker compose up --wait --wait-timeout 120 "$DATABASE"
Expand Down
7 changes: 6 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ classifiers = [
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Programming Language :: Python :: 3.15",
"Topic :: Database",
"Topic :: Database :: Database Engines/Servers",
"Topic :: Internet",
Expand Down Expand Up @@ -87,7 +88,6 @@ tests = [
"fastapi >=0.128.0",
"httpx >=0.28.1",
"jinja2 >=3.1.6",
"psycopg[binary] >=3.2.10",
"pymysql[rsa] >=1.1.1",
"pytest >=7.0.1",
"pyyaml >=5.3.1",
Expand All @@ -97,6 +97,9 @@ tests = [
"typing-extensions >=4.15.0",
]

# Psycopg binary wheels are not available for free-threaded Python.
tests-postgres = ["psycopg[binary] >=3.2.10"]

[tool.pdm]
version = { source = "file", path = "sqlmodel/__init__.py" }
distribution = true
Expand All @@ -110,6 +113,8 @@ source-includes = [
]

[tool.coverage.run]
# Dynamic test contexts require the C tracer.
core = "ctrace"
parallel = true
data_file = "coverage/.coverage"
source = [
Expand Down
Loading
Loading