Skip to content

Commit 3ed6f09

Browse files
committed
fix: add FM examples to ci
1 parent 3094a27 commit 3ed6f09

3 files changed

Lines changed: 11 additions & 3 deletions

File tree

.github/workflows/ci.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,4 +198,11 @@ jobs:
198198
EVOLUTION_KEY_ID: ${{ secrets.EVOLUTION_KEY_ID }}
199199
EVOLUTION_SECRET: ${{ secrets.EVOLUTION_SECRET }}
200200
EVOLUTION_BASE_URL: ${{ secrets.EVOLUTION_BASE_URL }}
201-
run: make run-tokens
201+
run: make run-tokens
202+
203+
- name: Run foundation models examples
204+
env:
205+
EVOLUTION_KEY_ID: ${{ secrets.EVOLUTION_KEY_ID }}
206+
EVOLUTION_SECRET: ${{ secrets.EVOLUTION_SECRET }}
207+
EVOLUTION_BASE_URL: ${{ secrets.EVOLUTION_BASE_URL }}
208+
run: make run-foundation-models

Makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,9 @@ shell:
5959
test:
6060
rye run pytest tests/ -v --cov=evolution_openai --cov-report=html --cov-report=term --cov-report=xml:coverage.xml --cov-report=json:coverage.json
6161

62+
test-foundation-models:
63+
rye run pytest tests/test_foundation_models_*.py -v
64+
6265
# Code quality
6366
lint:
6467
rye run ruff check .

examples/foundation_models_example.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,6 @@ def basic_foundation_models_example():
8181
print(f"✅ Ответ: {content}")
8282
print(f"📊 Модель: {response.model}")
8383
print(f"🔢 Токенов: {response.usage.total_tokens}")
84-
print(f"🏷️ Project ID: {PROJECT_ID or 'не установлен'}")
8584
return True
8685
else:
8786
print("❌ Получен пустой ответ")
@@ -340,7 +339,6 @@ def main():
340339
print("🚀 Evolution Foundation Models - Примеры использования\n")
341340
print(f"🌐 Endpoint: {ENDPOINT_URL}")
342341
print(f"🤖 Модель: {DEFAULT_MODEL}")
343-
print(f"🏷️ Project ID: {PROJECT_ID or 'не установлен'}")
344342

345343
# Показываем, используются ли Foundation Models
346344
is_foundation_models = (

0 commit comments

Comments
 (0)