Skip to content
Merged
Show file tree
Hide file tree
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
32 changes: 27 additions & 5 deletions .github/workflows/deploy-website.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,17 +17,38 @@ concurrency:
cancel-in-progress: false

jobs:
check-target:
runs-on: ubuntu-latest
outputs:
website-exists: ${{ steps.website.outputs.exists }}
steps:
- uses: actions/checkout@v6

- id: website
name: Check website package
run: |
if [ -f benchmarks/EvoAgentBench/website/package.json ]; then
echo "exists=true" >> "$GITHUB_OUTPUT"
else
echo "exists=false" >> "$GITHUB_OUTPUT"
echo "::notice::benchmarks/EvoAgentBench/website/package.json is not present; skipping website deploy."
fi

build:
runs-on: ubuntu-latest
needs: check-target
if: needs.check-target.outputs.website-exists == 'true'
defaults:
run:
working-directory: benchmarks/EvoAgentBench/website
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v6

- uses: actions/setup-node@v4
- uses: actions/setup-node@v6
with:
node-version: 20
node-version: 24
cache: npm
cache-dependency-path: benchmarks/EvoAgentBench/website/package-lock.json

- run: npm ci

Expand All @@ -38,7 +59,7 @@ jobs:

- run: touch out/.nojekyll

- uses: actions/upload-pages-artifact@v3
- uses: actions/upload-pages-artifact@v5
with:
path: benchmarks/EvoAgentBench/website/out

Expand All @@ -48,6 +69,7 @@ jobs:
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
if: needs.build.result == 'success'
steps:
- id: deployment
uses: actions/deploy-pages@v4
uses: actions/deploy-pages@v5
25 changes: 19 additions & 6 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,15 @@ on:
permissions:
contents: read

concurrency:
group: docs-${{ github.ref }}
cancel-in-progress: true

jobs:
links:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v6

- name: Validate active relative Markdown links
run: |
Expand Down Expand Up @@ -82,6 +86,12 @@ jobs:
}

failures = []
warnings = []
primary_link_pattern = re.compile(
r"^\[(?:Code|Plugin|Live Demo|Learn more)\]\(([^)]+)\)",
flags=re.M,
)

for path, heading in files.items():
text = path.read_text()
start = text.find(heading)
Expand All @@ -101,18 +111,21 @@ jobs:
title_match = re.search(r"####\s+(.+)", cell)
title = title_match.group(1).strip() if title_match else f"use case {index}"
banner_match = re.search(r"\[!\[[^\]]*\]\([^)]+\)\]\(([^)]+)\)", cell)
primary_match = re.search(r"^\[(?:Code|Plugin|Live Demo)\]\(([^)]+)\)", cell, flags=re.M)
primary_match = primary_link_pattern.search(cell)

if not banner_match:
failures.append(f"{path}: {title}: missing linked banner")
elif not primary_match:
if not banner_match and primary_match:
warnings.append(f"{path}: {title}: primary link has no linked banner")
elif banner_match and not primary_match:
failures.append(f"{path}: {title}: missing primary link")
elif banner_match.group(1) != primary_match.group(1):
elif banner_match and primary_match and banner_match.group(1) != primary_match.group(1):
failures.append(
f"{path}: {title}: banner link {banner_match.group(1)} "
f"does not match primary link {primary_match.group(1)}"
)

if warnings:
print("\n".join(f"warning: {warning}" for warning in warnings))

if failures:
print("\n".join(failures))
sys.exit(1)
Expand Down
105 changes: 105 additions & 0 deletions .github/workflows/evercore-smoke.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,105 @@
name: EverCore Smoke

on:
pull_request:
paths:
- "methods/EverCore/**"
- ".github/workflows/evercore-smoke.yml"
push:
branches: [main]
paths:
- "methods/EverCore/**"
- ".github/workflows/evercore-smoke.yml"

permissions:
contents: read

concurrency:
group: evercore-smoke-${{ github.ref }}
cancel-in-progress: true

jobs:
smoke:
runs-on: ubuntu-latest
defaults:
run:
working-directory: methods/EverCore

steps:
- uses: actions/checkout@v6

- uses: actions/setup-python@v6
with:
python-version: "3.12"

- uses: astral-sh/setup-uv@v8.1.0
with:
enable-cache: true
cache-dependency-glob: methods/EverCore/uv.lock

- name: Install dependencies
run: uv sync --locked --dev

- name: Check whitespace
run: git diff --check

- name: Compile API and demo modules
env:
PYTHONPATH: src:.
run: uv run python -m compileall -q src/api_specs demo/extract_memory.py

- name: Run stable DTO compatibility tests
env:
PYTHONPATH: src:.
run: uv run pytest tests/test_content_item_compat.py -q

- name: Validate demo payload compatibility
env:
PYTHONPATH: src:.
run: |
uv run python - <<'PY'
from pydantic import ValidationError

from api_specs.dtos.memory import PersonalAddRequest
from demo.extract_memory import convert_to_v1_message

source = {
"message_id": "msg_001",
"create_time": "2025-06-26T00:00:00Z",
"sender": "user_001",
"sender_name": "User",
"type": "text",
"content": "hello",
}
session_meta = {"user_details": {"user_001": {"role": "user"}}}
converted = convert_to_v1_message(source, session_meta)

PersonalAddRequest.model_validate(
{"user_id": "user_001", "messages": [converted]}
)
assert converted["content"] == "hello"
assert "text" not in converted

old_payload = {
"user_id": "user_001",
"messages": [
{
"message_id": "msg_001",
"sender_id": "user_001",
"sender_name": "User",
"role": "user",
"timestamp": 1750896000000,
"type": "text",
"text": {"content": "hello"},
}
],
}
try:
PersonalAddRequest.model_validate(old_payload)
except ValidationError as exc:
assert exc.errors()[0]["loc"] == ("messages", 0, "content")
else:
raise AssertionError("old payload unexpectedly passed validation")

print("EverCore demo payload smoke passed")
PY