Files
computer-playbook/.github/workflows/test-code-unit.yml
T
kevinveenbirkenbachandClaude Sonnet 4.6 0ce6b1347c refactor(annotations): move to utils/annotations, add step summary support
- Move utils/gha/annotations.py → utils/annotations/message.py
- Move scripts/gha/summarize_annotations.py → utils/annotations/summarize.py
- Keep utils/gha/annotations.py as compatibility shim
- Update all imports across codebase to utils.annotations.message
- Wire tee + summary step into test-code-lint, unit, and integration workflows
- Add unit tests for utils/annotations/summarize (20 tests)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-08 14:05:24 +02:00

35 lines
811 B
YAML

name: Test Units
on:
workflow_call:
permissions:
contents: read
jobs:
test-code-unit:
name: 🧪 Run unit tests
runs-on: ubuntu-latest
timeout-minutes: 30
env:
NIX_CONFIG: |
access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}
INFINITO_IMAGE_TAG: ci-${{ github.sha }}
steps:
- name: Checkout repository
uses: actions/checkout@v6
- name: Run unit tests via make
shell: bash
run: |
set -euo pipefail
make up
make test-unit 2>&1 | tee /tmp/unit-output.txt
- name: Build step summary from annotations
if: always()
working-directory: ${{ github.workspace }}
run: |
python3 -m utils.annotations.summarize /tmp/unit-output.txt "Unit Test Annotation Summary"