ZipLime's picture
Replace placeholder with real SEC EDGAR fundamentals PIT bundle (93 issuers, 23.5k as-reported facts incl. restatements)
0561fec verified
Raw
History Blame Contribute Delete
764 Bytes
name: update-sec-fundamentals-pit
# daily, following the EDGAR filing index
on:
schedule:
- cron: "0 5 * * *"
workflow_dispatch:
jobs:
ingest:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
lfs: true
- uses: actions/setup-python@v5
with:
python-version: "3.12"
- run: pip install polars deltalake httpx huggingface_hub
- name: Fetch + append (PIT, append-only)
run: python ingest.py --since "$(date -u -d '10 days ago' +%F)"
- name: Push updated bundle
env:
HF_TOKEN: ${{ secrets.HF_TOKEN }}
run: |
huggingface-cli upload --repo-type dataset \
ZipLime/sec-fundamentals-pit data/ data/ --token "$HF_TOKEN"