Skip to content

Commit

Permalink
use sqlite-versions action for testing multiple versions
Browse files Browse the repository at this point in the history
  • Loading branch information
asg017 committed Jun 11, 2024
1 parent 7437d40 commit 021c1aa
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,25 @@ jobs:
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
sqlite-version: [
"3", # latest version
"3.24", # 2018-06-04, added UPSERT support
"3.23.1" # 2018-04-10 before UPSERT
]
steps:
- uses: actions/checkout@v4
- name: Set up SQLite ${{ matrix.sqlite-version }}
uses: asg017/sqlite-versions@main
with:
version: ${{ matrix.sqlite-version }}
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
allow-prereleases: true
cache: pip
cache-dependency-path: setup.py
- run: python3 -c "import sqlite3; print(sqlite3.sqlite_version)"
- name: Build extension for --load-extension test
run: |-
(cd tests && gcc ext.c -fPIC -shared -o ext.so)
Expand Down

0 comments on commit 021c1aa

Please sign in to comment.