Skip to content

Commit

Permalink
Generate whisker plot via CI
Browse files Browse the repository at this point in the history
  • Loading branch information
orhun committed Sep 17, 2023
1 parent ee65497 commit 73acc15
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/benchmark.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,27 @@ jobs:
- name: Run benchmarks
shell: bash
run: ./bench.sh

- name: Generate plot
shell: bash
run: |
wget https://raw.githubusercontent.com/sharkdp/hyperfine/master/scripts/plot_whisker.py
python -m pip install -U matplotlib
python plot_whisker.py benchmarks.json -o plot_whisker.png
- name: Checkout output branch
uses: actions/checkout@v3
# if: github.event_name != 'pull_request'
with:
ref: output
fetch-depth: 1

- name: Commit to the branch
# if: github.event_name != 'pull_request'
run: |
git config user.name 'github-actions[bot]'
git config user.email 'github-actions[bot]@users.noreply.github.com'
set +e
git add benchmarks.json plot_whisker.png
git commit -m "Update benchmarks"
git push https://${{ secrets.GITHUB_TOKEN }}@github.com/${GITHUB_REPOSITORY}.git output

0 comments on commit 73acc15

Please sign in to comment.