-
Notifications
You must be signed in to change notification settings - Fork 8
51 lines (48 loc) · 1.22 KB
/
codspeed.yml
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
name: CodSpeed
on:
push:
branches: [master]
pull_request:
branches: [master]
workflow_dispatch:
env:
PYTHON_VERSION: "3.12"
jobs:
build:
name: Build wheel
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- uses: astral-sh/setup-uv@v4
- uses: actions/setup-python@v5
with:
python-version: ${{ env.PYTHON_VERSION }}
- name: Install valgrind
run: sudo apt-get install valgrind -y
- name: Build the wheel
run: uv build --wheel --out-dir dist/
- uses: actions/upload-artifact@v4
with:
name: wheel
path: dist/*.whl
benchmarks:
name: Run benchmarks
needs: build
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
with:
submodules: "recursive"
- uses: actions/setup-python@v2
with:
python-version: ${{ env.PYTHON_VERSION }}
- uses: actions/download-artifact@v4
with:
name: wheel
path: dist
- name: Install local version of pytest-codspeed
run: pip install dist/*.whl
- name: Run benchmarks
uses: CodSpeedHQ/action@main
with:
run: pytest tests/benchmarks/ --codspeed