-
Notifications
You must be signed in to change notification settings - Fork 1
42 lines (35 loc) · 1.03 KB
/
benchmark.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
---
name: Benchmark with CodSpeed
on:
push:
branches:
- main
merge_group:
pull_request:
workflow_dispatch:
repository_dispatch:
types: [trigger_checks]
jobs:
codspeed-benchmarks:
timeout-minutes: 1440
runs-on: ubuntu-24.04
name: codspeed benchmarks
steps:
- name: Checkout Code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Python
uses: actions/setup-python@v5
- name: Setup uv
uses: astral-sh/setup-uv@v5
- name: Install pynonthermal
run: |
uv sync --frozen
source .venv/bin/activate
uv pip install --compile-bytecode --editable .
- name: Run benchmarks
uses: CodSpeedHQ/action@v3
with:
token: ${{ secrets.CODSPEED_TOKEN }}
run: uv run --frozen -- python3 -m pytest --codspeed