Skip to content

feat: device-aware JWT auth, prekey upload, key fingerprint endpoint, and AI agent CI #3

feat: device-aware JWT auth, prekey upload, key fingerprint endpoint, and AI agent CI

feat: device-aware JWT auth, prekey upload, key fingerprint endpoint, and AI agent CI #3

Workflow file for this run

name: AI Agent CI
on:
push:
paths:
- 'apps/ai_agent/**'
- '.github/workflows/ai-agent-ci.yml'
pull_request:
paths:
- 'apps/ai_agent/**'
- '.github/workflows/ai-agent-ci.yml'
jobs:
test:
name: Test · Coverage
runs-on: ubuntu-latest
defaults:
run:
working-directory: apps/ai_agent
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup uv
uses: astral-sh/setup-uv@v5
with:
enable-cache: true
cache-dependency-glob: 'apps/ai_agent/uv.lock'
- name: Install dependencies
run: uv sync --group dev
- name: Run tests with coverage
run: uv run pytest --cov=main --cov-report=xml --cov-report=term-missing
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v5
continue-on-error: true
with:
files: apps/ai_agent/coverage.xml
flags: ai-agent
- name: Post coverage summary
if: always()
run: |
echo "## Coverage Report" >> $GITHUB_STEP_SUMMARY
uv run coverage report --format=markdown >> $GITHUB_STEP_SUMMARY 2>/dev/null || \
echo "Coverage data not available." >> $GITHUB_STEP_SUMMARY