Skip to content

merge: v1.1.0 — SessionEnd-driven memory architecture #94

merge: v1.1.0 — SessionEnd-driven memory architecture

merge: v1.1.0 — SessionEnd-driven memory architecture #94

Workflow file for this run

name: tests
on:
push:
branches: [main]
pull_request:
branches: [main]
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
pytest:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest]
python-version: ["3.10", "3.12"]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: pip
- name: Install package with dev extras
run: |
python -m pip install --upgrade pip
pip install -e ".[dev]"
- name: Verify no Anthropic API calls (v1.1 architectural rule)
shell: bash
run: |
set +e
matches=$(grep -rn "anthropic\.Anthropic\|from anthropic" mnemos/ skills/ \
--include="*.py" --include="*.md" 2>/dev/null \
| grep -v "# noqa: no-api")
if [ -n "$matches" ]; then
echo "::error::Direct Anthropic API call detected. Mnemos uses subscription quota only."
echo "$matches"
exit 1
fi
echo "No-API check passed."
- name: Run default test suite (skips `slow` marker)
run: pytest tests/ -q