Skip to content

Commit 94339e2

Browse files
authored
build: add Langfuse pins (#1837)
1 parent 1af63a0 commit 94339e2

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

.github/workflows/langfuse.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,9 +65,15 @@ jobs:
6565
- name: Run tests
6666
run: hatch run cov-retry
6767

68+
- name: Run unit tests with lowest direct dependencies
69+
run: |
70+
hatch run uv pip compile pyproject.toml --resolution lowest-direct --output-file requirements_lowest_direct.txt
71+
hatch run uv pip install -r requirements_lowest_direct.txt
72+
hatch run test -m "not integration"
6873
- name: Nightly - run unit tests with Haystack main branch
6974
if: github.event_name == 'schedule'
7075
run: |
76+
hatch env prune
7177
hatch run uv pip install git+https://github.com/deepset-ai/haystack.git@main
7278
hatch run cov-retry -m "not integration"
7379

integrations/langfuse/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ classifiers = [
2222
"Programming Language :: Python :: Implementation :: CPython",
2323
"Programming Language :: Python :: Implementation :: PyPy",
2424
]
25-
dependencies = ["haystack-ai>=2.12.1", "langfuse"]
25+
dependencies = ["haystack-ai>=2.13.0", "langfuse>=2.9.0"]
2626

2727
[project.urls]
2828
Documentation = "https://github.com/deepset-ai/haystack-core-integrations/tree/main/integrations/langfuse#readme"

integrations/langfuse/tests/test_tracer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
from typing import Optional
1010

1111
import pytest
12-
from haystack.dataclasses import ChatMessage, ToolCall, ToolCallResult
12+
from haystack.dataclasses import ChatMessage, ToolCall
1313
from haystack_integrations.tracing.langfuse.tracer import LangfuseTracer, LangfuseSpan, SpanContext, DefaultSpanHandler
1414
from haystack_integrations.tracing.langfuse.tracer import _COMPONENT_OUTPUT_KEY
1515

0 commit comments

Comments
 (0)