Skip to content

Add census block-level geographic assignment with comprehensive looku… #8

Add census block-level geographic assignment with comprehensive looku…

Add census block-level geographic assignment with comprehensive looku… #8

name: Publish Local Area H5 Files
on:
push:
branches: [main]
paths:
- 'policyengine_us_data/datasets/cps/local_area_calibration/**'
- '.github/workflows/local_area_publish.yaml'
- 'modal_app/**'
repository_dispatch:
types: [calibration-updated]
workflow_dispatch:
# Trigger strategy:
# 1. Automatic: Code changes to local_area_calibration/ pushed to main
# 2. repository_dispatch: Calibration workflow triggers after uploading new weights
# 3. workflow_dispatch: Manual trigger when you update weights/data on HF yourself
jobs:
publish-local-area:
runs-on: ubuntu-latest
permissions:
contents: read
env:
HUGGING_FACE_TOKEN: ${{ secrets.HUGGING_FACE_TOKEN }}
MODAL_TOKEN_ID: ${{ secrets.MODAL_TOKEN_ID }}
MODAL_TOKEN_SECRET: ${{ secrets.MODAL_TOKEN_SECRET }}
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.13'
- name: Install Modal CLI
run: pip install modal
- name: Run local area publishing on Modal
run: modal run modal_app/local_area.py --branch=${{ github.head_ref || github.ref_name }}