-
Notifications
You must be signed in to change notification settings - Fork 14
48 lines (40 loc) · 1.13 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
43
44
45
46
47
48
name: Benchmark
on:
push:
branches-ignore:
- "dependabot/**"
pull_request:
workflow_dispatch:
jobs:
benchmark:
name: Benchmark ${{ matrix.archs }} ${{ matrix.build }} on ${{ matrix.os }}
needs: [lint]
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-22.04]
archs: ["x86_64"]
build: ["manylinux"]
steps:
- name: Set git to use LF
run: |
git config --global core.autocrlf false
git config --global core.eol lf
- uses: actions/checkout@v4
with:
submodules: recursive
- name: Build wheel
uses: pypa/cibuildwheel@v2.18.1
env:
CIBW_ARCHS: "${{ matrix.archs }}"
CIBW_BUILD: "cp312-${{ matrix.build }}*"
- uses: wntrblm/nox@2024.04.15
name: Install Nox
with:
python-versions: "3.12"
- name: Install dependencies
run: nox -s benchmark --install-only -- --wheel wheelhouse/*.whl
- name: Run benchmark
uses: CodSpeedHQ/action@v2
with:
run: nox -s benchmark --reuse-existing-virtualenvs --no-install -- -v