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
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
54 changes: 54 additions & 0 deletions .github/workflows/content-package.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
name: Content Package Contract

on:
pull_request:
push:
branches:
- main

permissions:
contents: read

jobs:
validate-content-package:
runs-on: ubuntu-latest
defaults:
run:
working-directory: microplex-us
steps:
- name: Check out microplex-us
uses: actions/checkout@v4
with:
path: microplex-us

- name: Check out Microplex core
uses: actions/checkout@v4
with:
repository: PolicyEngine/microplex
ref: 5a1ea5e107334f45e850678774efc0c613dce250
path: microplex

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

- name: Set up uv
uses: astral-sh/setup-uv@v6

- name: Reject Python files
run: |
if find . -name '*.py' -print -quit | grep -q .; then
find . -name '*.py' -print
exit 1
fi

- name: Validate YAML and JSON contract
run: |
PYTHONPATH="../microplex/src:src" uv run --no-project --python 3.13 \
--with pydantic --with pyyaml \
python -m microplex.content_package \
--package microplex_us \
--spec specs/us-2024.yaml \
--contract manifests/ecps_export_contract.json \
--src-root src/microplex_us
36 changes: 0 additions & 36 deletions .github/workflows/docs.yml

This file was deleted.

40 changes: 0 additions & 40 deletions .github/workflows/export-columns.yml

This file was deleted.

Loading
Loading