|
34 | 34 | - name: Lint with ruff |
35 | 35 | run: ruff check src/ tests/ |
36 | 36 |
|
| 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 | +
|
37 | 76 | test: |
38 | 77 | runs-on: ubuntu-latest |
39 | 78 | strategy: |
|
0 commit comments