Skip to content

fix(release): harden publication boundaries #91

fix(release): harden publication boundaries

fix(release): harden publication boundaries #91

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@d23441a48e516b6c34aea4fa41551a30e30af803 # v6
- uses: astral-sh/setup-uv@fac544c07dec837d0ccb6301d7b5580bf5edae39 # v8.2.0
with:
python-version: "3.11"
enable-cache: true
- name: Run unittest suite
run: make test
package:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6
- uses: astral-sh/setup-uv@fac544c07dec837d0ccb6301d7b5580bf5edae39 # v8.2.0
with:
python-version: "3.11"
enable-cache: true
- name: Build and validate package metadata
run: |
make build
make check-dist
# Validate the kit against the *real* hermes-agent source so it can't silently
# drift from upstream. Checks out NousResearch/hermes-agent and points the
# contract tests at it; explicit checkout import or layout drift fails this
# job so an upstream contract break cannot become a misleading skipped green.
hermes-contract:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6
- uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6
with:
repository: NousResearch/hermes-agent
path: .hermes-agent
- uses: astral-sh/setup-uv@fac544c07dec837d0ccb6301d7b5580bf5edae39 # v8.2.0
with:
python-version: "3.11"
enable-cache: true
- name: Run hermes contract tests against upstream main
env:
HERMES_AGENT_PATH: ${{ github.workspace }}/.hermes-agent
run: |
git -C "$HERMES_AGENT_PATH" rev-parse HEAD
uv run python -m unittest tests.test_hermes_contract -v