diff --git a/.github/workflows/release-audit.yml b/.github/workflows/release-audit.yml deleted file mode 100644 index 6d372c8..0000000 --- a/.github/workflows/release-audit.yml +++ /dev/null @@ -1,64 +0,0 @@ -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@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 (pinned) - with: - path: target - - - name: Check out the shared release-audit harness - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 (pinned) - with: - repository: Coding-Dev-Tools/release-audit - path: harness - # Pin to a tag once a stable release is published; main is fine - # for now since the harness is small and self-contained. - ref: main - - - name: Set up Python - uses: actions/setup-python@0a5c61591373683505ea898e09a3ea4f39ef2b9c # v5.0.0 (pinned) - with: - python-version: "3.11" - - - name: Run the 8-angle release audit - working-directory: harness - env: - GITHUB_WORKSPACE: ${{ github.workspace }} - run: | - python audit.py "$GITHUB_WORKSPACE/target" --out-dir scorecard - python3 - <<'PY' - import json, os, pathlib - repo = pathlib.Path(os.environ["GITHUB_WORKSPACE"], "target").name - data = json.loads(pathlib.Path("scorecard", f"{repo}.json").read_text()) - print("## Release Audit (8 angles)") - print() - print(f"**Overall grade: {data['overall_grade']}** ({data['angles_passing']}/{data['angles_total']} angles passing)") - print() - print("| Angle | Grade |") - print("|-------|-------|") - for a in data["angles"]: - print(f"| {a['angle']} | {a['grade']} |") - PY - - - name: Fail on blockers - working-directory: harness - env: - GITHUB_WORKSPACE: ${{ github.workspace }} - run: | - python3 - <<'PY' - import json, os, pathlib, sys - repo = pathlib.Path(os.environ["GITHUB_WORKSPACE"], "target").name - data = json.loads(pathlib.Path("scorecard", f"{repo}.json").read_text()) - if data["blockers"] > 0: - print(f"::error::{data['blockers']} release-blocker angle(s) — see audit output above") - sys.exit(1) - PY diff --git a/.gitignore b/.gitignore index e069b39..5e7d1ea 100644 --- a/.gitignore +++ b/.gitignore @@ -71,4 +71,3 @@ Thumbs.db research/ fixtures/generated/ .ruff_cache/ -nul diff --git a/pyproject.toml b/pyproject.toml index 9a36e77..0743e97 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -36,7 +36,7 @@ dev = [ "ruff>=0.4.0", ] toml = ["tomli>=2.0.0", "tomli-w>=1.0.0"] -license = ["revenueholdings-license>=0.1.0"] +license-check = ["revenueholdings-license>=0.1.0"] [project.urls] Homepage = "https://github.com/Coding-Dev-Tools/configdrift"