Skip to content

Commit 0cea482

Browse files
authored
test: remove workaround related to SQLite without FTS5 (crewAIInc#386)
For more details check out [here](actions/runner-images#12576)
1 parent fcc2313 commit 0cea482

File tree

1 file changed

+1
-17
lines changed

1 file changed

+1
-17
lines changed

.github/workflows/tests.yml

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -38,21 +38,5 @@ jobs:
3838
- name: Install the project
3939
run: uv sync --dev --all-extras
4040

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-
5741
- name: Run tests
58-
run: PYTHONPATH=.pytest_sqlite_override uv run pytest tests -vv
42+
run: uv run pytest tests -vv

0 commit comments

Comments
 (0)