-
Notifications
You must be signed in to change notification settings - Fork 14
52 lines (43 loc) · 1.22 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
49
50
51
52
name: Benchmark
on:
push:
branches-ignore:
- "dependabot/**"
- "pre-commit-ci-update-config"
pull_request:
workflow_dispatch:
concurrency:
group: benchmark-${{ github.ref }}
cancel-in-progress: true
jobs:
benchmark:
name: Benchmark ${{ matrix.archs }} ${{ matrix.build }} on ${{ matrix.os }}
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.22.0
env:
CIBW_ARCHS: "${{ matrix.archs }}"
CIBW_BUILD: "cp312-${{ matrix.build }}*"
- uses: wntrblm/nox@2024.10.09
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@v3
with:
run: nox -s benchmark --reuse-existing-virtualenvs --no-install -- -v