Skip to content

XDUB: Add May bank holiday post-2021 #680

XDUB: Add May bank holiday post-2021

XDUB: Add May bank holiday post-2021 #680

Workflow file for this run

name: Benchmark
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
benchmark:
name: Performance regression check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.11"
- name: Install dependencies
run: |
pip install -e .[dev] -c etc/requirements_dev.txt
- name: Run benchmark
run: |
pytest etc/bench.py --benchmark-json output.json
- name: Download previous benchmark data
uses: actions/[email protected]
with:
path: ./cache
key: ${{ runner.os }}-benchmark
- name: Store benchmark result
uses: rhysd/github-action-benchmark@v1
with:
tool: 'pytest'
output-file-path: output.json
external-data-json-path: ./cache/benchmark-data.json
fail-on-alert: true
# GitHub API token to make a commit comment
github-token: ${{ secrets.GITHUB_TOKEN }}
# Enable alert commit comment
comment-on-alert: true
alert-threshold: "150%"