forked from gumyr/build123d
-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (32 loc) · 1019 Bytes
/
Copy pathbenchmark.yml
File metadata and controls
36 lines (32 loc) · 1019 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
name: benchmarks
on: [push, pull_request, workflow_dispatch]
permissions:
contents: read
actions: write
jobs:
benchmarks:
strategy:
fail-fast: false
matrix:
python-version: [
"3.12",
]
os: [macos-15-intel, macos-14, ubuntu-latest, windows-latest, ubuntu-24.04-arm]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd #v6.0.2
with:
persist-credentials: false
- uses: ./.github/actions/setup/
with:
python-version: ${{ matrix.python-version }}
optional-dependencies: "development"
- name: benchmark
run: |
python -m pytest --benchmark-only --benchmark-autosave
pytest-benchmark compare --csv="results.csv"
cat results.csv
- uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a #v7.0.1
with:
name: benchmark-results-${{ matrix.os }}
path: results.csv