Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
MOCK_LLM_URL=http://localhost:8001/v1/chat/completions
ADMIN_API_TOKEN=change-me-admin-token
UPSTREAM_LLM_PROVIDER=mock
UPSTREAM_TIMEOUT_SECONDS=10
UPSTREAM_RETRY_COUNT=1
Expand Down
45 changes: 45 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: Test

on:
push:
branches:
- master
- feature/perf-test
pull_request:
branches:
- master

permissions:
contents: read

jobs:
verify:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Set up Python 3.10
uses: actions/setup-python@v5
with:
python-version: "3.10"
cache: pip

- name: Upgrade pip
run: python -m pip install --upgrade pip

- name: Install project with dev and perf dependencies
run: python -m pip install -e ".[dev,perf]"

- name: Run pytest
run: python -m pytest -q

- name: Compile Python modules
run: python -m compileall backend evaluation tools

- name: Verify locustfile import
run: python -c "import importlib.util; spec = importlib.util.spec_from_file_location('locustfile', 'tools/locustfile.py'); module = importlib.util.module_from_spec(spec); spec.loader.exec_module(module)"

- name: Run scanner smoke test
run: python tools/scanner.py --no-json
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
__pycache__/
*.py[cod]
.pytest_cache/
evaluation/evaluation_report.md
.venv/
venv/
.env
Expand Down
Loading
Loading