Skip to content

Commit daa0f88

Browse files
Merge pull request #31 from VH-Lab/claude/did-bridge-coverage-wx9pzu
Add bridge coverage audit tool and enforce checkable bridge entries
2 parents 0014b42 + 9997412 commit daa0f88

18 files changed

Lines changed: 3118 additions & 188 deletions

‎.github/workflows/python-package.yml‎

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,45 @@ jobs:
3434
- name: Lint with ruff
3535
run: ruff check src/ tests/
3636

37+
bridge:
38+
name: Bridge coverage vs DID-matlab
39+
runs-on: ubuntu-latest
40+
steps:
41+
- name: Check out DID-python
42+
uses: actions/checkout@v4
43+
44+
- name: Check out DID-matlab
45+
uses: actions/checkout@v4
46+
with:
47+
repository: VH-Lab/DID-matlab
48+
path: DID-matlab
49+
fetch-depth: 0 # drift check walks history from each sync hash
50+
51+
- name: Set up Python 3.12
52+
uses: actions/setup-python@v5
53+
with:
54+
python-version: "3.12"
55+
56+
- name: Install PyYAML
57+
run: pip install pyyaml
58+
59+
# These four checks depend only on the current state of the two repos,
60+
# so a PR can break them and a PR can fix them. They gate.
61+
- name: Check bridge coverage
62+
run: |
63+
python bin/check_bridge_coverage.py \
64+
--matlab-repo DID-matlab \
65+
--check file --check hash --check member --check missing
66+
67+
# Drift is different: it turns red when DID-matlab moves, which no commit
68+
# here causes and no commit here can fix until someone does the port. Kept
69+
# visible but non-gating, so main does not go red without a commit.
70+
- name: Report MATLAB drift (informational)
71+
continue-on-error: true
72+
run: |
73+
python bin/check_bridge_coverage.py \
74+
--matlab-repo DID-matlab --check drift
75+
3776
test:
3877
runs-on: ubuntu-latest
3978
strategy:

‎PORTING_INSTRUCTIONS.md‎

Lines changed: 601 additions & 78 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)