Add HTML templates for dashboard, metrics, overview, and backtesting
CI / lint-test-build (push) Failing after 1m7s
CI / lint-test-build (push) Failing after 1m7s
- Introduced new HTML templates for the dashboard, metrics, overview, and backtesting functionalities. - Implemented partial templates for metrics, overview, audit, controls, and charts to enhance modularity. - Updated the Jinja2 template resolution logic to support different deployment environments. - Added a health check template to display the service status. - Included a test suite to verify the template resolution logic. - Updated `pyproject.toml` to include new HTML templates in the package data.
This commit is contained in:
@@ -43,6 +43,21 @@ jobs:
|
||||
- name: Tests
|
||||
run: pytest -q
|
||||
|
||||
- name: Package template smoke check
|
||||
run: |
|
||||
pip install build
|
||||
python -m build --wheel
|
||||
pip uninstall -y arbitrade
|
||||
pip install --force-reinstall dist/*.whl
|
||||
python - <<'PY'
|
||||
from arbitrade.api import routes
|
||||
|
||||
template = routes.templates.env.get_template("dashboard.html")
|
||||
rendered = template.render()
|
||||
if "<!DOCTYPE html>" not in rendered:
|
||||
raise SystemExit("dashboard template render smoke check failed")
|
||||
PY
|
||||
|
||||
- name: Latency guardrails
|
||||
run: |
|
||||
python scripts/check_latency_regression.py \
|
||||
|
||||
Reference in New Issue
Block a user