-
Notifications
You must be signed in to change notification settings - Fork 61
42 lines (38 loc) · 1.16 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: Run Benchmarks
on:
workflow_dispatch:
jobs:
test:
strategy:
matrix:
os:
- "ubuntu-latest-16-cores"
- "ubuntu-latest-32-cores"
- "ubuntu-latest-64-cores"
python-version: ["3.10"]
runs-on: ${{ matrix.os }}
permissions:
contents: write
steps:
- uses: actions/checkout@v3
- name: Set up Python 3
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python3 -m pip install --upgrade pip
python3 -m pip install ".[test,lgb]"
- name: Benchmark
run: |
pytest -k "test_benchmark" -vv \
--benchmark-name=short \
--benchmark-group-by=param \
--benchmark-min-rounds=3 \
--benchmark-columns=min,max,mean,median,stddev,rounds,iterations \
--benchmark-json=docs/benchmarks/${{ matrix.os }}.json
- uses: actions/checkout@v3
- name: Commit results
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: "docs: Update ${{ matrix.os }} benchmark"