Repository navigation
test: add unit + integration test infrastructure for kernel components #3
Workflow file for this run
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 Unit | |
| on: | |
| pull_request: | |
| branches: [ "main" ] | |
| push: | |
| branches: [ "main" ] | |
| permissions: | |
| contents: read | |
| actions: write | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| test-unit: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Python 3.11 | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.11" | |
| - name: Install dependencies | |
| run: | | |
| python -m pip install uv | |
| uv venv | |
| source .venv/bin/activate | |
| uv pip install -r requirements.txt | |
| - name: Create config from example | |
| run: cp aios/config/config.yaml.example aios/config/config.yaml | |
| - name: Run unit tests | |
| run: | | |
| source .venv/bin/activate | |
| # NOTE: Known-broken files excluded from the unit run: | |
| # - tests/modules/llm/openai/test_concurrent.py (broken import) | |
| # - tests/modules/llm/openai/test_single.py (broken import) | |
| # - tests/modules/memory/test_memory.py (broken import) | |
| # - tests/modules/memory/test_memory_user_identity_isolation.py | |
| # (order-dependent ConfigManager singleton pollution — passes | |
| # in isolation, fails when run after other memory tests; | |
| # tracked separately) | |
| # These are pre-existing issues unrelated to the CI workflow. | |
| pytest tests/ -v -m "not integration" \ | |
| --ignore=tests/modules/llm/openai/test_concurrent.py \ | |
| --ignore=tests/modules/llm/openai/test_single.py \ | |
| --ignore=tests/modules/memory/test_memory.py \ | |
| --ignore=tests/modules/memory/test_memory_user_identity_isolation.py |