forked from zarr-developers/zarr-python
-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (30 loc) · 795 Bytes
/
codspeed.yml
File metadata and controls
33 lines (30 loc) · 795 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
name: CodSpeed Benchmarks
on:
push:
branches:
- "main"
pull_request:
# `workflow_dispatch` allows CodSpeed to trigger backtest
# performance analysis in order to generate initial data.
workflow_dispatch:
permissions:
contents: read
jobs:
benchmarks:
name: Run benchmarks
runs-on: codspeed-macro
steps:
- uses: actions/checkout@v5
with:
fetch-depth: 0 # grab all branches and tags
- name: Set up Python
uses: actions/setup-python@v6
- name: Install Hatch
run: |
python -m pip install --upgrade pip
pip install hatch
- name: Run the benchmarks
uses: CodSpeedHQ/action@v4
with:
mode: walltime
run: hatch run test.py3.11-1.26-minimal:pytest tests/benchmarks --codspeed