Skip to content

Commit 2cfffbd

Browse files
authored
Test against pysqlite3 running SQLite 3.37
Refs #346 and #344.
1 parent 213a0ff commit 2cfffbd

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

.github/workflows/test.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ jobs:
1313
python-version: ["3.6", "3.7", "3.8", "3.9", "3.10"]
1414
numpy: [0, 1]
1515
os: [ubuntu-latest, macos-latest, windows-latest]
16+
include:
17+
- os: ubuntu-latest
18+
pysqlite3_sqlite_3_37: true
1619
steps:
1720
- uses: actions/checkout@v2
1821
- name: Set up Python ${{ matrix.python-version }}
@@ -32,6 +35,19 @@ jobs:
3235
- name: Optionally install numpy
3336
if: matrix.numpy == 1
3437
run: pip install numpy
38+
- name: Optionall install pysqlite3 with SQLite 3.37
39+
if: matrix.pysqlite3_sqlite_3_37
40+
run: |-
41+
cd /tmp
42+
mkdir sqlite-3.37
43+
cd sqlite-3.37
44+
wget 'https://www.sqlite.org/2021/sqlite-amalgamation-3370000.zip'
45+
unzip sqlite-amalgamation-3370000.zip
46+
git clone https://github.com/coleifer/pysqlite3/
47+
cp sqlite-amalgamation-3370000/sqlite3.[ch] pysqlite3
48+
cd pysqlite3
49+
python setup.py build_static build bdist_wheel
50+
pip install /tmp/sqlite-3.37/pysqlite3/dist/*.whl
3551
- name: Run tests
3652
run: |
3753
pytest -v

0 commit comments

Comments
 (0)