-
Notifications
You must be signed in to change notification settings - Fork 1.2k
43 lines (37 loc) · 1.01 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
name: codspeed-benchmarks
on:
push:
branches: [main]
paths-ignore:
- '**/*.md'
pull_request:
branches: [main]
paths-ignore:
- '**/*.md'
permissions:
contents: read
defaults:
run:
shell: bash
jobs:
benchmarks:
strategy:
# Prioritize getting more information out of the workflow (even if something fails)
fail-fast: false
matrix:
# Show OS combos first in GUI
os: [ ubuntu-latest ]
python-version: [ '3.8.18', '3.9.18', '3.10.13', '3.11.5', '3.12.0' ]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/setup_build_env
with:
python-version: ${{ matrix.python-version }}
run-poetry-install: true
create-venv-at-path: .venv
- run: poetry run pip install pytest-codspeed pyvirtualdisplay pillow
- name: Run benchmarks
uses: CodSpeedHQ/action@v2
with:
run: poetry run pytest integration/benchmarks/ --codspeed