mirror of
https://github.com/gumyr/build123d.git
synced 2025-12-05 18:20:46 -08:00
31 lines
803 B
YAML
31 lines
803 B
YAML
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-15-intel, 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-autosave
|
|
pytest-benchmark compare --csv="results.csv"
|
|
cat results.csv
|
|
- uses: actions/upload-artifact@v4
|
|
with:
|
|
name: benchmark-results-${{ matrix.os }}
|
|
path: results.csv
|