Skip to content
Merged
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
2 changes: 1 addition & 1 deletion .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
# ── SOURCE 2: FRED ───────────────────────────────────────────────
# Free registration: https://fred.stlouisfed.org/docs/api/api_key.html
# Click "Request API Key" after creating a free account.
FRED_API_KEY=891f55aef63158096a05cae73dc3290b
FRED_API_KEY=your_fred_api_key_here


# ── SOURCE 3: GDELT via Google BigQuery ──────────────────────────
Expand Down
37 changes: 37 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: tests

on:
push:
pull_request:

jobs:
research:
name: pipeline + unit tests (Python 3.12)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.12"
cache: pip
- run: pip install -r requirements-research.txt
- run: pytest -q
- name: Rebuild models and dashboard data from raw prices
run: python run_pipeline.py --fast volatility
- name: Fail if committed models drifted from what the code produces
run: git diff --exit-code -- models/

dashboard:
name: dashboard (Python ${{ matrix.python }})
runs-on: ubuntu-latest
strategy:
matrix:
python: ["3.11", "3.13"]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python }}
cache: pip
- run: pip install -r dashboard/requirements.txt pytest
- run: pytest -q tests/test_dashboard.py tests/test_volatility.py
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,6 @@ notebooks/data/raw/

# Parquet cache files
*.parquet

# Streamlit secrets (use st.secrets; never commit)
.streamlit/secrets.toml
12 changes: 12 additions & 0 deletions .streamlit/config.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
[theme]
base = "dark"
primaryColor = "#00c8f8"
backgroundColor = "#0b0f17"
secondaryBackgroundColor = "#131a26"
textColor = "#dce8f5"

[browser]
gatherUsageStats = false

[client]
toolbarMode = "viewer"
Loading
Loading