mirror of
https://github.com/simonw/datasette.git
synced 2026-09-15 21:14:07 +02:00
- Only run push-triggered workflows on main; PRs are covered by pull_request, so branch commits no longer run everything twice - Test SQLite versions: single job, Python 3.13 + SQLite 3.25 - Fold coverage into the Python 3.14 test job (including serial tests) and remove test-coverage.yml; bump codecov-action to v5 - Cancel superseded in-progress runs on pull requests - Prettier now also runs on pull requests Claude-Session: https://claude.ai/code/session_012G7fa8HqJy9AkSjkocetAz
62 lines
1.9 KiB
YAML
62 lines
1.9 KiB
YAML
name: Test SQLite versions
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
pull_request:
|
|
workflow_dispatch:
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
|
|
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
test:
|
|
runs-on: ${{ matrix.platform }}
|
|
continue-on-error: true
|
|
strategy:
|
|
matrix:
|
|
platform: [ubuntu-latest]
|
|
python-version: ["3.13"]
|
|
sqlite-version: [
|
|
#"3", # latest version
|
|
#"3.46",
|
|
#"3.45",
|
|
#"3.27",
|
|
#"3.26",
|
|
"3.25",
|
|
#"3.25.3", # 2018-09-25, window functions breaks test_upsert for some reason on 3.10, skip for now
|
|
#"3.24", # 2018-06-04, added UPSERT support
|
|
#"3.23.1" # 2018-04-10, before UPSERT
|
|
]
|
|
steps:
|
|
- uses: actions/checkout@v7
|
|
- name: Set up Python ${{ matrix.python-version }}
|
|
uses: actions/setup-python@v6
|
|
with:
|
|
python-version: ${{ matrix.python-version }}
|
|
allow-prereleases: true
|
|
cache: pip
|
|
cache-dependency-path: pyproject.toml
|
|
- name: Set up SQLite ${{ matrix.sqlite-version }}
|
|
uses: ./.github/actions/setup-sqlite-version
|
|
with:
|
|
version: ${{ matrix.sqlite-version }}
|
|
cflags: "-DSQLITE_ENABLE_DESERIALIZE -DSQLITE_ENABLE_FTS5 -DSQLITE_ENABLE_FTS4 -DSQLITE_ENABLE_FTS3_PARENTHESIS -DSQLITE_ENABLE_RTREE -DSQLITE_ENABLE_JSON1"
|
|
- run: python3 -c "import sqlite3; print(sqlite3.sqlite_version)"
|
|
- run: echo $LD_LIBRARY_PATH
|
|
- 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 freeze
|
|
- name: Run tests
|
|
run: |
|
|
pytest -n auto -m "not serial"
|
|
pytest -m "serial"
|