Files
computer-playbook/.github/workflows/test-code-unit.yml
T
kevinveenbirkenbachandClaude Opus 4.8 cddb0dc59b feat(lint): require emoji-prefixed task/step/job names + convert existing
Add tests/lint/repository/test_name_emoji_and_length.py: every Ansible task
name and GitHub Actions workflow/job/step name must start with an emoji (first
char not 0-9/A-Za-z) and be <= 80 chars.

- emit emoji names at the source: cli/build/include generator now writes
  "🔧 setup <app>" / "🚿 flush handlers after <app>" so generated
  tasks/groups/*-roles.yml satisfy the convention too
- convert existing task/step/job/workflow names to emoji-prefixed, choosing a
  task-fitting icon per action (📦 install, ✅ ensure, 🔍 probe, 🥾 bootstrap,
  🚀 deploy, 🧩 service-module load, ⬇️ checkout, 📂 include-routines, ...)

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-28 22:45:06 +02:00

39 lines
913 B
YAML

name: "🧪 Test: Code (Units)"
on:
workflow_call:
permissions:
contents: read
jobs:
test-code-unit:
name: 🧪 Test unit
runs-on: ubuntu-latest
timeout-minutes: 30
env:
INFINITO_TEST_RUNNER: host
steps:
- name: ⬇️ Checkout repository
uses: actions/checkout@v7
- name: 🔧 Set up Python
uses: actions/setup-python@v6
with:
python-version: "3.12"
cache: pip
cache-dependency-path: pyproject.toml
- name: ▶️ Run unit tests via make
shell: bash
run: |
set -euo pipefail
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"