fix: NFR review findings — error-path hardening + protocol/contract test coverage #1
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: Tests | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| python-version: ["3.10", "3.12"] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| cache: pip | |
| - name: Install package and test tooling | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install -e . | |
| pip install --group dev | |
| - name: Run tests with coverage | |
| # No --cov-fail-under yet: establish the baseline first, then ratchet | |
| # the gate up instead of picking an aspirational number that blocks CI. | |
| run: | | |
| pytest -q --cov=agentkit --cov-report=term --cov-report=xml | |
| - name: Upload coverage report | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: coverage-${{ matrix.python-version }} | |
| path: coverage.xml |