Skip to content

feat: add benchmarks #1

feat: add benchmarks

feat: add benchmarks #1

Workflow file for this run

name: Benchmark
on:
push:
branches-ignore:
- "dependabot/**"
pull_request:
workflow_dispatch:
jobs:
benchmark:

Check failure on line 11 in .github/workflows/benchmark.yml

View workflow run for this annotation

GitHub Actions / Benchmark

Invalid workflow file

The workflow is not valid. .github/workflows/benchmark.yml (Line: 11, Col: 3): The workflow must contain at least one job with no dependencies.
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