diff --git a/.github/workflows/benchmarks.yaml b/.github/workflows/benchmarks.yaml index 880f931..bb44159 100644 --- a/.github/workflows/benchmarks.yaml +++ b/.github/workflows/benchmarks.yaml @@ -42,6 +42,7 @@ jobs: pyv: ["3.10"] steps: + - uses: iterative/setup-cml@v1 - uses: actions/checkout@v3 with: fetch-depth: 0 @@ -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