refactor: converge the evaluate-render-raise idiom on one resolve_or_raise helper #230
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Metadata Guard | |
| # ci.yaml skips the matrix for root markdown, but README.md is packaging metadata (pyproject `readme`). | |
| # Always-on (no paths filters) so deleting or renaming it cannot merge green and break the sdist build. | |
| on: | |
| push: | |
| branches: [ "main" ] | |
| pull_request: | |
| branches: [ "main" ] | |
| permissions: | |
| contents: read | |
| jobs: | |
| metadata-files-exist: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Assert packaging metadata files exist | |
| run: | | |
| test -f README.md || { | |
| echo "README.md is missing but pyproject.toml references it as packaging metadata (readme)." | |
| echo "Restore it, or update pyproject.toml and this guard together." | |
| exit 1 | |
| } |