Skip to content

Commit 48a1f3b

Browse files
author
Mateusz
committed
Fix CI dependency and boundary checks
1 parent a8ef13b commit 48a1f3b

5 files changed

Lines changed: 29 additions & 28 deletions

File tree

.github/workflows/architecture-check.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@ jobs:
1111
runs-on: ubuntu-latest
1212

1313
steps:
14-
- uses: actions/checkout@v4
14+
- uses: actions/checkout@v5
1515

1616
- name: Set up Python
17-
uses: actions/setup-python@v5
17+
uses: actions/setup-python@v6
1818
with:
1919
python-version: '3.10'
2020

.github/workflows/ci.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
hook-integrity:
1414
runs-on: ubuntu-latest
1515
steps:
16-
- uses: actions/checkout@v4
16+
- uses: actions/checkout@v5
1717

1818
- name: Validate pre-commit hook references
1919
run: python dev/scripts/validate_pre_commit_hooks.py
@@ -23,12 +23,12 @@ jobs:
2323
runs-on: ubuntu-latest
2424

2525
steps:
26-
- uses: actions/checkout@v4
26+
- uses: actions/checkout@v5
2727
with:
2828
fetch-depth: 2
2929

3030
- name: Set up Python 3.10
31-
uses: actions/setup-python@v5
31+
uses: actions/setup-python@v6
3232
with:
3333
python-version: '3.10'
3434
cache: 'pip'
@@ -51,12 +51,12 @@ jobs:
5151
python-version: ['3.10']
5252

5353
steps:
54-
- uses: actions/checkout@v4
54+
- uses: actions/checkout@v5
5555
with:
5656
fetch-depth: 2
5757

5858
- name: Set up Python ${{ matrix.python-version }}
59-
uses: actions/setup-python@v5
59+
uses: actions/setup-python@v6
6060
with:
6161
python-version: ${{ matrix.python-version }}
6262
cache: 'pip'
@@ -130,12 +130,12 @@ jobs:
130130
OAUTH_PLUGIN_INSTALL_TARGET: llm-interactive-proxy-oauth-connectors
131131

132132
steps:
133-
- uses: actions/checkout@v4
133+
- uses: actions/checkout@v5
134134
with:
135135
fetch-depth: 2
136136

137137
- name: Set up Python ${{ matrix.python-version }}
138-
uses: actions/setup-python@v5
138+
uses: actions/setup-python@v6
139139
with:
140140
python-version: ${{ matrix.python-version }}
141141
cache: 'pip'
@@ -184,12 +184,12 @@ jobs:
184184
python-version: ['3.10']
185185

186186
steps:
187-
- uses: actions/checkout@v4
187+
- uses: actions/checkout@v5
188188
with:
189189
fetch-depth: 2
190190

191191
- name: Set up Python ${{ matrix.python-version }}
192-
uses: actions/setup-python@v5
192+
uses: actions/setup-python@v6
193193
with:
194194
python-version: ${{ matrix.python-version }}
195195
cache: 'pip'

pyproject.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ dependencies = [
2727
"ijson",
2828
"watchdog",
2929
"pytz",
30-
"pytest-asyncio==0.23.7",
30+
"pytest-asyncio==1.3.0",
3131
"pytest-xdist==3.6.1",
3232
"cbor2>=5.6.0",
3333
"authlib>=1.3.0",
@@ -71,11 +71,11 @@ oauth = [
7171

7272
dev = [
7373
# Test stack (pin to match local green runs)
74-
"pytest==8.3.5",
75-
"pytest-asyncio==0.23.7",
74+
"pytest==9.0.3",
75+
"pytest-asyncio==1.3.0",
7676
"pytest-cov==5.0.0",
7777
"pytest-xdist==3.6.1",
78-
"pytest-httpx==0.30.0",
78+
"pytest-httpx==0.36.2",
7979
"pytest-mock==3.14.0",
8080
"freezegun==1.5.1",
8181
# Linters/formatters

src/core/domain/streaming/contracts.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,10 @@
88

99
from __future__ import annotations
1010

11-
from typing import Any, Literal
12-
13-
from pydantic import BaseModel, ConfigDict, Field, model_validator
11+
from typing import Any, Literal
12+
13+
from pydantic import BaseModel, ConfigDict, Field, model_validator
14+
from pydantic.types import JsonValue
1415

1516
from src.core.domain.chat import StreamingToolCall, ToolCall
1617

@@ -40,7 +41,7 @@ class StreamingUsage(BaseModel):
4041

4142
@model_validator(mode="before")
4243
@classmethod
43-
def _map_anthropic_style_usage_keys(cls, data: Any) -> Any:
44+
def _map_anthropic_style_usage_keys(cls, data: JsonValue) -> JsonValue:
4445
"""Anthropic/Messages API streams use input_tokens/output_tokens naming."""
4546

4647
if not isinstance(data, dict):

src/core/interfaces/response_processor_interface.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -192,15 +192,15 @@ def capability(self) -> str:
192192
"""
193193
return FeatureCapability.BOTH
194194

195-
@abstractmethod
196-
async def process_chunk(
197-
self,
198-
payload: Any,
199-
session_id: str,
200-
context: dict[str, object],
201-
*,
202-
is_streaming: bool,
203-
) -> Any:
195+
@abstractmethod
196+
async def process_chunk(
197+
self,
198+
payload: ProcessedChunkContent,
199+
session_id: str,
200+
context: dict[str, object],
201+
*,
202+
is_streaming: bool,
203+
) -> ProcessedChunkContent:
204204
"""Process one response unit (full non-streaming response or streaming chunk).
205205
206206
Sole required implementation path. Use ``is_streaming`` and lifecycle

0 commit comments

Comments
 (0)