Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ concurrency:
group: toad-verification-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
ratchet:
name: Debt ratchet
nra-gate:
name: NRA gate
timeout-minutes: 5
runs-on: ubuntu-latest
steps:
Expand All @@ -30,12 +30,12 @@ jobs:
python-version: '3.14'
- uses: ./.github/actions/core-from-main
with:
path: .core-ratchet
path: .core-gate
- name: Install Core's declared checker dependencies
run: |
python - <<'PY'
import pathlib, subprocess, tomllib
source = tomllib.loads(pathlib.Path('.core-ratchet/pyproject.toml').read_text())
source = tomllib.loads(pathlib.Path('.core-gate/pyproject.toml').read_text())
subprocess.run(['uv', 'pip', 'install', '--python', '.venv/bin/python',
*source['project']['optional-dependencies']['dev']], check=True)
PY
Expand All @@ -46,7 +46,7 @@ jobs:
# change starts at the merge-base with the base branch's current tip.
BASE_TIP: ${{ github.event.pull_request.base.ref && format('origin/{0}', github.event.pull_request.base.ref) || inputs.base }}
PR_HEAD: ${{ github.event.pull_request.head.sha || inputs.head }}
run: PYTHONPATH="$PWD/.core-ratchet/src" PATH="$PWD/.venv/bin:$PATH" .venv/bin/python .core-ratchet/tools/client_ratchet.py --root src/toad --base "$(git merge-base "$BASE_TIP" "$PR_HEAD")" --head "$PR_HEAD"
run: PYTHONPATH="$PWD/.core-gate/src" PATH="$PWD/.venv/bin:$PATH" .venv/bin/python .core-gate/tools/nra_client_gate.py --root src/toad --base "$(git merge-base "$BASE_TIP" "$PR_HEAD")" --head "$PR_HEAD"
- name: Run surface guards
run: .venv/bin/pytest tests/guards
suite:
Expand Down
Loading