Repository navigation
77 lines (72 loc) · 3.18 KB
/
Copy pathtest.yml
File metadata and controls
77 lines (72 loc) · 3.18 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
---
# 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: mise run 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: |
mise run build
mise run 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: mise run 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: bf0203a794a07aac3ff764972ab9087baa4e4f4e
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
repository: NousResearch/hermes-agent
ref: bf0203a794a07aac3ff764972ab9087baa4e4f4e
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"
mise run test-contract-pinned