fix: 159 markdown rendering for summary is broken (#218) #203
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Python Example with pytest | |
on: | |
push: | |
branches: | |
- master | |
permissions: | |
contents: write | |
deployments: write | |
jobs: | |
benchmark: | |
name: Run pytest-benchmark benchmark example | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: 3.9 | |
- name: Run benchmark | |
run: | | |
cd examples/pytest | |
pip install -r requirements.txt | |
pytest bench.py --benchmark-json output.json | |
- name: Store benchmark result | |
uses: benchmark-action/github-action-benchmark@v1 | |
with: | |
name: Python Benchmark with pytest-benchmark | |
tool: 'pytest' | |
output-file-path: examples/pytest/output.json | |
# Use personal access token instead of GITHUB_TOKEN due to https://gh.neting.ccmunity/t/github-action-not-triggering-gh-pages-upon-push/16096 | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
auto-push: true | |
# Show alert with commit comment on detecting possible performance regression | |
alert-threshold: '200%' | |
comment-on-alert: true | |
fail-on-alert: true | |
alert-comment-cc-users: '@ktrz' | |
- name: Store benchmark result - separate results repo | |
uses: benchmark-action/github-action-benchmark@v1 | |
with: | |
name: Python Benchmark with pytest-benchmark | |
tool: 'pytest' | |
output-file-path: examples/pytest/output.json | |
# Use personal access token instead of GITHUB_TOKEN due to https://gh.neting.ccmunity/t/github-action-not-triggering-gh-pages-upon-push/16096 | |
github-token: ${{ secrets.BENCHMARK_ACTION_BOT_TOKEN }} | |
auto-push: true | |
# Show alert with commit comment on detecting possible performance regression | |
alert-threshold: '200%' | |
comment-on-alert: true | |
fail-on-alert: true | |
alert-comment-cc-users: '@ktrz' | |
gh-repository: 'github.com/benchmark-action/github-action-benchmark-results' |