- Bump minimum Python version from 3.11 to 3.13 across all apps - Add Python 3.11-3.13 test matrix to CLI workflow - Document Python 3.11+ requirement in .env.example - Fix Starlette Broadcast removal with in-process fallback implementation - Add _InProcessBroadcast class for tests when Starlette Broadcast is unavailable - Refactor API key validators to read live settings instead of cached values - Update database models with explicit
51 lines
1.3 KiB
YAML
51 lines
1.3 KiB
YAML
name: CLI Tests
|
|
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
paths:
|
|
- 'cli/**'
|
|
- 'tests/cli/**'
|
|
pull_request:
|
|
branches: [main]
|
|
paths:
|
|
- 'cli/**'
|
|
- 'tests/cli/**'
|
|
|
|
jobs:
|
|
test:
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
matrix:
|
|
python-version: ['3.11', '3.12', '3.13']
|
|
fail-fast: false
|
|
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 dependencies
|
|
run: |
|
|
python -m pip install --upgrade pip
|
|
pip install -e .
|
|
pip install -e packages/py/aitbc-crypto
|
|
pip install fastapi uvicorn sqlmodel pydantic-settings aiosqlite slowapi orjson prometheus-client
|
|
pip install pytest pytest-cov pytest-asyncio
|
|
|
|
- name: Run CLI tests
|
|
run: |
|
|
python -m pytest tests/cli/ -v --tb=short --disable-warnings
|
|
|
|
- name: Run CLI tests with coverage
|
|
run: |
|
|
python -m pytest tests/cli/ --cov=aitbc_cli --cov-report=term-missing --cov-report=xml
|
|
|
|
- name: Upload coverage
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: coverage-report
|
|
path: coverage.xml
|