Skip to content

FEAT: implement BreitWigner expression classes #560

FEAT: implement BreitWigner expression classes

FEAT: implement BreitWigner expression classes #560

Workflow file for this run

name: Benchmark
env:
FORCE_COLOR: "1"
on:
push:
branches:
- main
pull_request:
branches:
- main
- epic/*
workflow_dispatch:
jobs:
benchmark:
name: Performance regression
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
fetch-depth: 0
- uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0
with:
python-version: "3.13"
- uses: astral-sh/setup-uv@20cfd1bf945f4377ade1205e4dbc17946fc9a30d # v10.0.1
- name: Run pytest-benchmark
run: uvx --from poethepoet poe benchmark
- name: Warn on performance decrease
if: github.event_name == 'pull_request'
uses: benchmark-action/github-action-benchmark@52576c92bccf6ac60c8223ec7eb2565637cae9ba # v1.22.1
with:
benchmark-data-dir-path: ""
comment-on-alert: true
fail-on-alert: true
gh-repository: github.com/ComPWA/ampform-benchmark-results
github-token: ${{ secrets.GITHUB_TOKEN }}
name: AmpForm benchmark results
output-file-path: benchmarks/output.json
tool: pytest
- name: Create local benchmark data repository
if: github.event_name != 'pull_request'
uses: benchmark-action/github-action-benchmark@52576c92bccf6ac60c8223ec7eb2565637cae9ba # v1.22.1
with:
benchmark-data-dir-path: ""
gh-repository: github.com/ComPWA/ampform-benchmark-results
github-token: ${{ secrets.PAT }}
name: AmpForm benchmark results
output-file-path: benchmarks/output.json
tool: pytest
- name: Push results to GitHub Pages
if: github.event_name != 'pull_request'
run: git push 'https://ComPWA:${{ secrets.PAT }}@github.com/ComPWA/ampform-benchmark-results' gh-pages
working-directory: benchmark-data-repository