Skip to content

Commit

Permalink
use cml for report generation
Browse files Browse the repository at this point in the history
  • Loading branch information
pmrowla committed May 4, 2023
1 parent 6095a09 commit 7beae64
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions .github/workflows/benchmarks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ jobs:
pyv: ["3.10"]

steps:
- uses: iterative/setup-cml@v1
- uses: actions/checkout@v3
with:
fetch-depth: 0
Expand Down Expand Up @@ -70,14 +71,7 @@ jobs:
path: .benchmarks

- name: create md
if: github.event_name == 'pull_request'
id: get-comment-body
run: |
PY_COLORS=0 py.test-benchmark compare --group-by func --sort name
echo ::set-output name=body::$body
- name: post comment
if: ${{ github.event_name == 'pull_request' && ! github.event.pull_request.head.repo.fork }}
uses: peter-evans/create-or-update-comment@v2
with:
issue-number: ${{ github.event.pull_request.number }}
body: ${{ steps.get-comment-body.outputs.body }}
run: |
"\`\`\`\n$(PY_COLORS=0 py.test-benchmark compare --group-by func --sort name)\n\`\`\`" > report.md
cml comment create report.md

0 comments on commit 7beae64

Please sign in to comment.