Skip to content

fix(contract): make the contract lanes report what they ran #195

fix(contract): make the contract lanes report what they ran

fix(contract): make the contract lanes report what they ran #195

Workflow file for this run

---
# yamllint disable rule:line-length rule:truthy
name: test
on:
push:
pull_request:
permissions:
contents: read
jobs:
unittest:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Install the locked toolchain (mise.toml)
uses: jdx/mise-action@82a612c5ab8bcda7cc5db6b7e81a8e7584c3dc6e # v5.2.3
with:
# Pinned so every run, release jobs included, installs the same mise;
# the action still verifies it against mise's signed checksums.
version: "2026.10.18"
- name: Run unittest suite
run: just test
package:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Install the locked toolchain (mise.toml)
uses: jdx/mise-action@82a612c5ab8bcda7cc5db6b7e81a8e7584c3dc6e # v5.2.3
with:
# Pinned so every run, release jobs included, installs the same mise;
# the action still verifies it against mise's signed checksums.
version: "2026.10.18"
- name: Build and validate package metadata
run: |
just build
just check-dist
# `twine check` reads metadata and never opens the archive, so it passes
# on a wheel that is missing a module entirely. Installing and importing
# is the only thing that catches that.
- name: Prove the public surface imports from the installed wheel
run: just check-install
# Amber admission gates on the exact deployed Hermes fork contract. Keep the
# immutable revision aligned with infra's candidate image/source receipt.
# Amber admission gates on the exact deployed Hermes fork contract. The pin
# below is test-enforced against hermes_plugin_kit.testing's constant; the
# workflow cannot read that constant, because actions/checkout consumes the
# ref before mise installs Python.
hermes-deployed-contract:
runs-on: ubuntu-latest
env:
DEPLOYED_HERMES_REVISION: 939e45c91d751fadd94dcd1b873ac3cb44846213
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
repository: NousResearch/hermes-agent
ref: 939e45c91d751fadd94dcd1b873ac3cb44846213
path: .hermes-agent-deployed
- name: Install the locked toolchain (mise.toml)
uses: jdx/mise-action@82a612c5ab8bcda7cc5db6b7e81a8e7584c3dc6e # v5.2.3
with:
# Pinned so every run, release jobs included, installs the same mise;
# the action still verifies it against mise's signed checksums.
version: "2026.10.18"
# The full suite, not the context-engine module alone. It is green at
# this pin, so widening adds coverage rather than risk.
- name: Run the full contract suite against the deployed Hermes revision
env:
HERMES_AGENT_PATH: ${{ github.workspace }}/.hermes-agent-deployed
run: |
test "$(git -C "$HERMES_AGENT_PATH" rev-parse HEAD)" = \
"$DEPLOYED_HERMES_REVISION"
just test-contract-pinned