-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (37 loc) · 1.14 KB
/
benchmarks.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
name: benchmarks
on:
push:
branches:
- "master"
pull_request:
# `workflow_dispatch` allows CodSpeed to trigger backtest
# performance analysis in order to generate initial data.
workflow_dispatch:
jobs:
benchmarks:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install poetry==1.3.0
poetry install
- name: Setup Rust part of the project
run: |
poetry run maturin build --release --out dist
pip install --no-index --find-links=dist/ rustberry
- name: Setup Benchmarks
working-directory: test_parser
run:
poetry export --with test --with dev --without-hashes --without local --output requirements.txt
pip install -r requirements.txt
- name: Run benchmarks
uses: CodSpeedHQ/action@v2
with:
working-directory: test_parser
token: ${{ secrets.CODSPEED_TOKEN }}
run: pytest benchmarks --codspeed