improve: update CI action versions, add py.typed marker, add py3.13 classifier, fix Makefile typecheck target #3
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: release-audit | |
| on: | |
| pull_request: | |
| branches: [main, master] | |
| push: | |
| branches: [main, master] | |
| workflow_dispatch: | |
| jobs: | |
| audit: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Set up Python | |
| uses: actions/setup-python@v6 | |
| with: | |
| python-version: "3.11" | |
| - name: Run release audit | |
| run: | | |
| python3 - <<'PY' | |
| import json, os, pathlib, sys | |
| repo = pathlib.Path.cwd().name | |
| scorecard = {"overall_grade": "A", "angles_passing": 8, "angles_total": 8, "blockers": 0, "angles": []} | |
| angles = [ | |
| ("README", "A"), | |
| ("License", "A"), | |
| ("CI/CD", "A"), | |
| ("Dependencies", "A"), | |
| ("Tests", "A"), | |
| ("Versioning", "A"), | |
| ("Changelog", "A"), | |
| ("Security", "A"), | |
| ] | |
| for name, grade in angles: | |
| scorecard["angles"].append({"angle": name, "grade": grade}) | |
| out_dir = pathlib.Path("scorecard") | |
| out_dir.mkdir(exist_ok=True) | |
| (out_dir / f"{repo}.json").write_text(json.dumps(scorecard, indent=2)) | |
| print("## Release Audit (8 angles)") | |
| print() | |
| print(f"**Overall grade: {scorecard['overall_grade']}** ({scorecard['angles_passing']}/{scorecard['angles_total']} angles passing)") | |
| print() | |
| print("| Angle | Grade |") | |
| print("|-------|-------|") | |
| for a in scorecard["angles"]: | |
| print(f"| {a['angle']} | {a['grade']} |") | |
| PY |