Merge pull request #24 from offendingcommit/feat/context-engine-adapter #90
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: test | |
| on: | |
| push: | |
| pull_request: | |
| jobs: | |
| unittest: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: astral-sh/setup-uv@v8.2.0 | |
| with: | |
| python-version: "3.11" | |
| enable-cache: true | |
| - name: Run unittest suite | |
| run: make test | |
| # Amber admission gates on the exact deployed Hermes fork contract. Keep the | |
| # immutable revision aligned with infra's candidate image/source receipt. | |
| hermes-deployed-context-engine-contract: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: actions/checkout@v6 | |
| with: | |
| repository: offendingcommit/hermes-agent | |
| ref: d3b1cfe9a80531e0682b1e66752e04cea29d5d4a | |
| path: .hermes-agent-deployed | |
| - uses: astral-sh/setup-uv@v8.2.0 | |
| with: | |
| python-version: "3.11" | |
| enable-cache: true | |
| - name: Run context-engine contract against deployed Hermes revision | |
| env: | |
| HERMES_AGENT_PATH: ${{ github.workspace }}/.hermes-agent-deployed | |
| run: | | |
| test "$(git -C "$HERMES_AGENT_PATH" rev-parse HEAD)" = \ | |
| "d3b1cfe9a80531e0682b1e66752e04cea29d5d4a" | |
| uv run python -m unittest tests.test_context_engine_contract -v | |
| # Track forward drift against upstream main without making Amber depend on | |
| # APIs that are newer than its exact deployed host. | |
| hermes-contract: | |
| runs-on: ubuntu-latest | |
| continue-on-error: true | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: actions/checkout@v6 | |
| with: | |
| repository: NousResearch/hermes-agent | |
| path: .hermes-agent | |
| - uses: astral-sh/setup-uv@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 |