We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8cece02 commit bec80cfCopy full SHA for bec80cf
.github/workflows/unit-tests.yml
@@ -52,7 +52,7 @@ jobs:
52
echo "$HOME/.cargo/bin" >> $GITHUB_PATH
53
54
- name: Install dependencies
55
- run: uv sync --dev
+ run: uv sync --dev --extra sql
56
57
- name: Run tests
58
run: uv run pytest
tests/server/tasks/test_database_task_store.py
@@ -6,6 +6,12 @@
6
import pytest_asyncio
7
8
from _pytest.mark.structures import ParameterSet
9
+
10
11
+# Skip entire test module if SQLAlchemy is not installed
12
+pytest.importorskip('sqlalchemy', reason='Database tests require SQLAlchemy')
13
14
+# Now safe to import SQLAlchemy-dependent modules
15
from sqlalchemy.ext.asyncio import create_async_engine
16
from sqlalchemy.inspection import inspect
17
0 commit comments