Skip to content

Commit d9f2b4d

Browse files
committed
chore: prepare for using pytest to run examples
1 parent e75cca1 commit d9f2b4d

File tree

4 files changed

+41
-3
lines changed

4 files changed

+41
-3
lines changed

Makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,3 +31,6 @@ test:
3131
.PHONY: lock
3232
lock:
3333
poetry lock --no-update
34+
35+
test.examples:
36+
pytest examples -n=5

examples/06_streaming_summary.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ class TranslationOutput(BaseModel):
2828
)
2929

3030

31-
@workflowai.agent(id="french-translator", model=Model.CLAUDE_3_5_SONNET_LATEST)
31+
@workflowai.agent(id="french-translator", model=Model.GEMINI_2_0_FLASH_LATEST)
3232
async def translate_to_english(_: TranslationInput) -> TranslationOutput:
3333
"""
3434
Translate French text into natural, fluent English.

poetry.lock

Lines changed: 36 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ httpx = ">=0.27"
1616
pyright = "^1.1.390"
1717
pytest = "^8.2.2"
1818
pytest-asyncio = "^0.25.3"
19+
pytest-xdist = "^3.6.1"
1920
ruff = "^0.9.6"
2021
freezegun = "^1.5.1"
2122
pre-commit = "^4.0.1"

0 commit comments

Comments
 (0)