Compatibility with sqlite-utils>=4.0rc2

Runs the tests in CI. Had to add a little bit of code to handle
the difference between [table] and "table" and REAL v.s FLOAT.
This commit is contained in:
Simon Willison 2026-07-05 09:09:20 -07:00
commit 6d253d10c8
3 changed files with 61 additions and 8 deletions

View file

@ -51,3 +51,25 @@ jobs:
run: |
pip install datasette-init datasette-json-html
tests/test-datasette-load-plugins.sh
test-sqlite-utils-4:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Set up Python
uses: actions/setup-python@v6
with:
python-version: "3.13"
cache: pip
cache-dependency-path: pyproject.toml
- name: Build extension for --load-extension test
run: |-
(cd tests && gcc ext.c -fPIC -shared -o ext.so)
- name: Install dependencies
run: |
pip install . --group dev
pip install --pre 'sqlite-utils>=4.0rc2'
pip freeze
- name: Run tests
run: |
pytest -n auto -m "not serial"
pytest -m "serial"