fix: session_recall reads consolidated decisions archive (#1) #11
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: | |
| branches: [main] | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| python-version: ["3.11", "3.12", "3.13"] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Python ${{ matrix.python-version }} | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Install system dependencies | |
| run: sudo apt-get update && sudo apt-get install -y cmake | |
| - name: Install package | |
| run: pip install -e ".[dev]" | |
| - name: Warm fastembed model cache | |
| # Pre-download the embedding model in a single process so the four | |
| # pytest-xdist workers don't race on the cache write — without this | |
| # the workers download to /tmp/fastembed_cache/ concurrently, one | |
| # wins, the others see a partial file and fail with NO_SUCHFILE. | |
| run: python -c "from fastembed import TextEmbedding; TextEmbedding('BAAI/bge-small-en-v1.5')" | |
| - name: Run tests | |
| run: pytest --cov=context_engine --cov-report=xml --cov-report=term | |
| - name: Upload coverage | |
| if: matrix.python-version == '3.12' | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: coverage-report | |
| path: coverage.xml |