Skip to content

Display performance graphs inline in Actions summary#1

Draft
Copilot wants to merge 3 commits into
mainfrom
copilot/add-image-upload-to-summary
Draft

Display performance graphs inline in Actions summary#1
Copilot wants to merge 3 commits into
mainfrom
copilot/add-image-upload-to-summary

Conversation

Copy link
Copy Markdown

Copilot AI commented Nov 11, 2025

Continues SemiAnalysisAI#205 by uploading PNG graphs to an images branch and embedding them directly in the GitHub Actions summary instead of requiring artifact downloads.

Changes

  • Permissions: Added contents: write to enable pushing to images branch
  • Upload step: Implements austenstone/file-upload pattern - commits PNGs to orphan images branch, constructs raw.githubusercontent.com URLs
  • Summary generation: Markdown with embedded images grouped by metric type (Interactivity/E2E Latency) and model family

Implementation

- name: Upload and display images
  run: |
    # Commit PNGs to images branch
    git checkout -B images origin/images || git checkout --orphan images
    git add *.png && git commit -m "..." && git push -f origin images
    
    # Generate summary with raw GitHub URLs
    echo "![graph](https://raw.githubusercontent.com/${repo}/refs/heads/images/graph.png)" \
      >> $GITHUB_STEP_SUMMARY

Handles dynamic file count (model families vary), preserves existing artifact upload for archival.

Original prompt

Continue https://github.com/InferenceMAX/InferenceMAX/pull/205

use austenstone/file-upload
Example:

      - id: upload-image
        uses: austenstone/file-upload@v1
        with:
          path: output.png
          
      - name: Add image to job summary
        run: |
          echo "![Generated Image]($IMAGE_URL)" >> $GITHUB_STEP_SUMMARY
        env:
          IMAGE_URL: ${{ steps.upload-image.outputs.url }}

✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Copilot AI and others added 2 commits November 11, 2025 01:56
Co-authored-by: austenstone <22425467+austenstone@users.noreply.github.com>
Co-authored-by: austenstone <22425467+austenstone@users.noreply.github.com>
Copilot AI changed the title [WIP] Add image upload and summary update example Display performance graphs inline in Actions summary Nov 11, 2025
Copilot AI requested a review from austenstone November 11, 2025 02:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants