mirror of
https://github.com/simonw/datasette.git
synced 2026-06-23 01:04:49 +02:00
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:
parent
ad6fe47a95
commit
387f4dd4bc
2 changed files with 13 additions and 1 deletions
7
.github/workflows/test.yml
vendored
7
.github/workflows/test.yml
vendored
|
|
@ -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: |
|
||||
|
|
|
|||
|
|
@ -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")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue