Skip to content

fix: handle client disconnect #70

fix: handle client disconnect

fix: handle client disconnect #70

Workflow file for this run

name: Test Chatbot
on:
pull_request:
paths: ["**.py"]
# Allow manual execution from the Actions tab
workflow_dispatch:
jobs:
test-chatbot:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Set up Python
uses: actions/setup-python@v6
with:
python-version-file: pyproject.toml
- name: Install uv
uses: astral-sh/setup-uv@v7
with:
version: "0.9.24"
- name: Install dependencies
run: uv sync
- name: Run tests
run: uv run pytest --cov
# Minimal environment configuration required for test execution
env:
# Mock database configuration
DB_HOST: localhost
DB_PORT: 5432
DB_NAME: mock
DB_USER: mock
DB_PASSWORD: mock
# Mock JWT configuration
JWT_ALGORITHM: HS256
JWT_SECRET_KEY: mock-jwt-secret-key
# Mock Google BigQuery configuration
GOOGLE_BIGQUERY_PROJECT: mock-bigquery-project
GOOGLE_SERVICE_ACCOUNT: /tmp/mock-service-account.json
# Mock LLM configuration
MODEL_URI: mock-model-uri
MODEL_TEMPERATURE: 0.0
THINKING_LEVEL: low
# Mock LangSmith configuration
LANGSMITH_TRACING: false
LANGSMITH_API_KEY: mock-langsmith-api-key
LANGSMITH_PROJECT: mock-langsmith-project