-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (32 loc) · 1.07 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
name: Benchmarks
on: [push]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: ["3.11"]
steps:
- uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
pip install -r requirements.txt
- name: Install local package
run: |
python -m pip install --editable .
- name: Calculate and log performance
run: |
python src/benchmarks/call_benchmark.py > benchmarks-${{ matrix.os }}-${{ matrix.python-version }}.txt
cat benchmarks-${{ matrix.os }}-${{ matrix.python-version }}.txt
- name: Upload benchmarks
uses: actions/upload-artifact@v4
with:
name: benchmarks-${{ matrix.os }}-${{ matrix.python-version }}
path: benchmarks-${{ matrix.os }}-${{ matrix.python-version }}.txt
if: ${{ always() }}