fix: improve lifecycle and rebuild diagnostics #7
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: CI | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| workflow_dispatch: | |
| jobs: | |
| test: | |
| name: ${{ matrix.os }} / Python ${{ matrix.python-version }} | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: [ubuntu-latest, macos-latest] | |
| python-version: ["3.9", "3.11", "3.13"] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Install | |
| run: | | |
| python -m pip install --upgrade pip | |
| python -m pip install -e . | |
| - name: Test | |
| run: python -m unittest discover -s tests -v | |
| - name: Compile | |
| run: python -m compileall -q memoryos | |
| - name: Check diff | |
| run: git diff --check | |
| - name: CLI and Quick Start smoke test | |
| shell: bash | |
| run: | | |
| export MEMORY_HOME="$(mktemp -d)/memory" | |
| memory --help | |
| memory init | |
| memory learn --project demo --goal "Record the release checklist" --action "Created a local demo" --decision "Keep durable notes as Markdown" --finding "SQLite FTS5 returns the saved conclusion" --actor ci --source ci | |
| memory search "release checklist" | |
| memory context demo --session --limit 8 --max-bytes 4096 | |
| memory import-pending --dry-run --path "$RUNNER_TEMP" | |
| memory doctor | |
| memory oss-candidate upsert --from-json examples/oss-candidate.json | |
| memory search "oss-candidate:pytest-dev/pytest#14702" | |
| memory github-pr-deduplicate --dry-run |