Skip to content

Commit 0123fc1

Browse files
committed
Test against pre-upsert SQLite 3.23.1
Borrowed from simonw/datasette@8f86d2af6
1 parent 0aefbb6 commit 0123fc1

File tree

1 file changed

+41
-0
lines changed

1 file changed

+41
-0
lines changed
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: Test SQLite versions
2+
3+
on: [push, pull_request]
4+
5+
permissions:
6+
contents: read
7+
8+
jobs:
9+
test:
10+
runs-on: ${{ matrix.platform }}
11+
continue-on-error: true
12+
strategy:
13+
matrix:
14+
platform: [ubuntu-latest]
15+
python-version: ["3.13"]
16+
sqlite-version: [
17+
"3.46",
18+
"3.23.1", # 2018-04-10, before UPSERT
19+
]
20+
steps:
21+
- uses: actions/checkout@v4
22+
- name: Set up Python ${{ matrix.python-version }}
23+
uses: actions/setup-python@v5
24+
with:
25+
python-version: ${{ matrix.python-version }}
26+
allow-prereleases: true
27+
cache: pip
28+
cache-dependency-path: setup.py
29+
- name: Set up SQLite ${{ matrix.sqlite-version }}
30+
uses: asg017/sqlite-versions@71ea0de37ae739c33e447af91ba71dda8fcf22e6
31+
with:
32+
version: ${{ matrix.sqlite-version }}
33+
cflags: "-DSQLITE_ENABLE_DESERIALIZE -DSQLITE_ENABLE_FTS5 -DSQLITE_ENABLE_FTS4 -DSQLITE_ENABLE_FTS3_PARENTHESIS -DSQLITE_ENABLE_RTREE -DSQLITE_ENABLE_JSON1"
34+
- run: python3 -c "import sqlite3; print(sqlite3.sqlite_version)"
35+
- name: Install dependencies
36+
run: |
37+
pip install -e '.[test]'
38+
pip freeze
39+
- name: Run tests
40+
run: |
41+
python -m pytest

0 commit comments

Comments
 (0)