File tree Expand file tree Collapse file tree 1 file changed +1
-17
lines changed Expand file tree Collapse file tree 1 file changed +1
-17
lines changed Original file line number Diff line number Diff line change 38
38
- name : Install the project
39
39
run : uv sync --dev --all-extras
40
40
41
- - name : Install SQLite with FTS5 support
42
- run : |
43
- # WORKAROUND: GitHub Actions' Ubuntu runner uses SQLite without FTS5 support compiled in.
44
- # This is a temporary fix until the runner includes SQLite with FTS5 or Python's sqlite3
45
- # module is compiled with FTS5 support by default.
46
- # TODO: Remove this workaround once GitHub Actions runners include SQLite FTS5 support
47
-
48
- # Install pysqlite3-binary which has FTS5 support
49
- uv pip install pysqlite3-binary
50
- # Create a sitecustomize.py to override sqlite3 with pysqlite3
51
- mkdir -p .pytest_sqlite_override
52
- echo "import sys; import pysqlite3; sys.modules['sqlite3'] = pysqlite3" > .pytest_sqlite_override/sitecustomize.py
53
- # Test FTS5 availability
54
- PYTHONPATH=.pytest_sqlite_override uv run python -c "import sqlite3; print(f'SQLite version: {sqlite3.sqlite_version}')"
55
- PYTHONPATH=.pytest_sqlite_override uv run python -c "import sqlite3; conn = sqlite3.connect(':memory:'); conn.execute('CREATE VIRTUAL TABLE test USING fts5(content)'); print('FTS5 module available')"
56
-
57
41
- name : Run tests
58
- run : PYTHONPATH=.pytest_sqlite_override uv run pytest tests -vv
42
+ run : uv run pytest tests -vv
You can’t perform that action at this time.
0 commit comments