Skip to content

Update benchmark visualizations (#271) #6

Update benchmark visualizations (#271)

Update benchmark visualizations (#271) #6

name: Process Benchmark Results
on:
push:
branches: [ main ]
paths:
- 'benchmark/results/**'
pull_request:
branches: [ main ]
paths:
- 'benchmark/results/**'
workflow_dispatch: # Allows manual triggering
jobs:
process-results:
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.10'
cache: 'pip'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pandas matplotlib seaborn numpy scipy colorcet
- name: Process benchmark results
run: |
python docs/scripts/hooks.py
- name: Create Pull Request
uses: peter-evans/create-pull-request@v6
with:
token: ${{ secrets.GITHUB_TOKEN }}
commit-message: Update benchmark visualizations
title: 'chore: update benchmark visualizations'
body: |
Automated PR to update benchmark visualizations
This PR was automatically created by the benchmark processing workflow.
branch: update-benchmark-visualizations
base: main
delete-branch: true
- name: Enable Pull Request Automerge
if: steps.create-pull-request.outputs.pull-request-operation == 'created'
run: |
PR_NUMBER=$(jq --raw-output .pull_request.number "$GITHUB_EVENT_PATH")
gh pr merge --auto --merge "$PR_NUMBER"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}