Try sqlite-utils 4.0rc1 in CI

Also output current sqlite-utils version in pytest headers

Refs https://github.com/simonw/sqlite-utils/issues/758
This commit is contained in:
Simon Willison 2026-06-21 16:46:20 -07:00
commit 387f4dd4bc
2 changed files with 13 additions and 1 deletions

View file

@ -11,6 +11,10 @@ jobs:
strategy:
matrix:
python-version: ["3.10", "3.11", "3.12", "3.13", "3.14"]
sqlite-utils-version: [""]
include:
- python-version: "3.14"
sqlite-utils-version: "4.0rc1"
steps:
- uses: actions/checkout@v6
- name: Set up Python ${{ matrix.python-version }}
@ -26,6 +30,9 @@ jobs:
- name: Install dependencies
run: |
pip install . --group dev
if [ -n "${{ matrix.sqlite-utils-version }}" ]; then
pip install sqlite-utils==${{ matrix.sqlite-utils-version }}
fi
pip freeze
- name: Run tests
run: |

View file

@ -1,4 +1,5 @@
import httpx
import importlib.metadata
import os
import pathlib
import pytest
@ -93,7 +94,11 @@ def pytest_report_header(config):
conn = sqlite3.connect(":memory:")
version = conn.execute("select sqlite_version()").fetchone()[0]
conn.close()
headers = ["SQLite: {}".format(version)]
sqlite_utils_version = importlib.metadata.version("sqlite-utils")
headers = [
"SQLite: {}".format(version),
"sqlite-utils: {}".format(sqlite_utils_version),
]
if config.getoption("--playwright"):
try:
browsers = config.getoption("--browser")