Skip to content

Commit 97d9797

Browse files
DTTerastarclaude
andcommitted
ci(accuracy): publish accuracy report to log + artifact
The accuracy-harness workflow only ran the `accuracy check` gate, which prints a single pass/fail line and uploads nothing, so the actual positioning numbers were never visible in a CI run. Add a step that runs `accuracy baseline` to regenerate the report, render the Markdown table into the job summary (and log), and upload the JSON + Markdown as a per-SHA artifact for cross-run comparison. Also add a `workflow_dispatch` trigger to regenerate numbers on demand. The existing regression gate is unchanged. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
1 parent d7cc59c commit 97d9797

1 file changed

Lines changed: 20 additions & 0 deletions

File tree

.github/workflows/accuracy-harness.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ name: Accuracy harness
77
# - and this workflow.
88
# This is NOT a general "did the build break" gate (that is ci.yml).
99
on:
10+
workflow_dispatch:
1011
push:
1112
branches: [main]
1213
paths:
@@ -55,6 +56,25 @@ jobs:
5556
# which has no business running for the accuracy gate.
5657
run: dotnet build -c Release tests/ESPresense.Companion.Simulation/ESPresense.Simulation.csproj
5758

59+
- name: Generate accuracy report
60+
run: |
61+
mkdir -p accuracy-report
62+
dotnet run --no-build -c Release --project tests/ESPresense.Companion.Simulation -- \
63+
accuracy baseline \
64+
--output accuracy-report/accuracy-report.json \
65+
--markdown accuracy-report/accuracy-report.md
66+
echo "## Multilateration accuracy report" >> "$GITHUB_STEP_SUMMARY"
67+
cat accuracy-report/accuracy-report.md >> "$GITHUB_STEP_SUMMARY"
68+
cat accuracy-report/accuracy-report.md
69+
70+
- name: Upload accuracy report
71+
if: always()
72+
uses: actions/upload-artifact@v4
73+
with:
74+
name: accuracy-report-${{ github.sha }}
75+
path: accuracy-report/
76+
retention-days: 90
77+
5878
- name: Run accuracy check (±5% tolerance)
5979
run: |
6080
dotnet run --no-build -c Release --project tests/ESPresense.Companion.Simulation -- \

0 commit comments

Comments
 (0)