mirror of
https://github.com/docling-project/docling-serve.git
synced 2025-11-29 08:33:50 +00:00
chore: avoid installing multiple times dependencies (#429)
Signed-off-by: Michele Dolfi <dol@zurich.ibm.com>
This commit is contained in:
5
.github/workflows/job-image.yml
vendored
5
.github/workflows/job-image.yml
vendored
@@ -160,13 +160,10 @@ jobs:
|
|||||||
pip install uv
|
pip install uv
|
||||||
uv venv --allow-existing
|
uv venv --allow-existing
|
||||||
source .venv/bin/activate
|
source .venv/bin/activate
|
||||||
uv sync --all-extras --no-extra flash-attn
|
uv sync --only-dev
|
||||||
|
|
||||||
# Run pytest tests
|
# Run pytest tests
|
||||||
echo "Running tests..."
|
echo "Running tests..."
|
||||||
# Test import
|
|
||||||
python -c 'from docling_serve.app import create_app; create_app()'
|
|
||||||
|
|
||||||
# Run pytest and check result directly
|
# Run pytest and check result directly
|
||||||
if ! pytest -sv -k "test_convert_url" tests/test_1-url-async.py \
|
if ! pytest -sv -k "test_convert_url" tests/test_1-url-async.py \
|
||||||
--disable-warnings; then
|
--disable-warnings; then
|
||||||
|
|||||||
@@ -69,6 +69,9 @@ flash-attn = [
|
|||||||
[dependency-groups]
|
[dependency-groups]
|
||||||
dev = [
|
dev = [
|
||||||
"asgi-lifespan~=2.0",
|
"asgi-lifespan~=2.0",
|
||||||
|
"httpx",
|
||||||
|
"pydantic",
|
||||||
|
"pydantic-settings",
|
||||||
"mypy~=1.11",
|
"mypy~=1.11",
|
||||||
"pre-commit-uv~=4.1",
|
"pre-commit-uv~=4.1",
|
||||||
"pypdf>=6.0.0",
|
"pypdf>=6.0.0",
|
||||||
|
|||||||
Reference in New Issue
Block a user