Skip to content

benchmark.yml -> generate JSON results, generate CSV report, echo to … #74

benchmark.yml -> generate JSON results, generate CSV report, echo to …

benchmark.yml -> generate JSON results, generate CSV report, echo to … #74

Workflow file for this run

name: benchmarks
on: [push, pull_request, workflow_dispatch]
jobs:
benchmarks:
strategy:
fail-fast: false
matrix:
python-version: [
# "3.10",
# "3.11",
"3.12",
]
os: [macos-13, macos-14, ubuntu-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/setup/
with:
python-version: ${{ matrix.python-version }}
- name: benchmark
run: |
python -m pytest --benchmark-only --benchmark-save
pytest-benchmark compare --csv="results.csv"
echo results.csv