Files
computer-playbook/.github/workflows/call-test.yml
T
kevinveenbirkenbachandClaude Opus 5 71888d86af refactor(ci): prefix workflows by trigger
The workflow directory mixed entry points, reusable stages and scheduled jobs into one flat list sorted by topic, so the first question about any file - what starts it - was the one the name did not answer. Every workflow now carries one of three prefixes, derived from its on: block: cron- for a schedule trigger, call- for one only reachable through workflow_call, entry- for everything a repository event or a human starts. Scheduled workflows additionally carry an alarm clock as the first character of their name.

Two lints keep it that way. One derives the expected prefix from the triggers and compares it against the file name; it flagged all 17 offenders before the rename and none after. The other resolves every .github/workflows/<file> string in the repository against the directory, which is what a rename silently breaks in Markdown links, Python constants and shell API URLs alike.

Renaming pulled 69 pre-existing comments into the comment lint's changed-file scope. The vendored CodeQL template got the nocheck marker its scorecard sibling already carried, two workflow headers moved above name: where they count as file headers, and the remaining banners were deleted.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-08-07 17:05:51 +02:00

45 lines
1.1 KiB
YAML

name: "🧪 Test"
on:
workflow_call:
workflow_dispatch:
permissions:
contents: read
jobs:
test:
name: 🧪 Test
runs-on: ubuntu-latest
timeout-minutes: 45
env:
INFINITO_TEST_RUNNER: host
steps:
- name: ⬇️ Checkout repository
uses: actions/checkout@v7.0.0
- name: 🔧 Set up Python
uses: actions/setup-python@v6
with:
python-version: "3.12"
cache: pip
cache-dependency-path: pyproject.toml
- name: ▶️ Run the full test suite via make
shell: bash
run: |
set -euo pipefail
make test 2>&1 | tee /tmp/test-output.txt
- name: 📊 Per-test summary from junit reports
if: always()
shell: bash
run: |
python3 utils/github/pytest_summary.py build/test-reports >> "$GITHUB_STEP_SUMMARY"
- name: 🔨 Build step summary from annotations
if: always()
working-directory: ${{ github.workspace }}
run: |
python3 -m utils.annotations.summarize /tmp/test-output.txt "Test Annotation Summary"