From 8d2f269c9da404f16a4f9b44bc0b1f79c6127b16 Mon Sep 17 00:00:00 2001 From: Agriya Khetarpal <74401230+agriyakhetarpal@users.noreply.github.com> Date: Thu, 11 Apr 2024 17:49:33 +0530 Subject: [PATCH] Try to fix benchmarks --- .github/workflows/benchmark_on_push.yml | 2 ++ asv.conf.json | 8 +++++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/workflows/benchmark_on_push.yml b/.github/workflows/benchmark_on_push.yml index b0da71461e..33b3c047bb 100644 --- a/.github/workflows/benchmark_on_push.yml +++ b/.github/workflows/benchmark_on_push.yml @@ -2,6 +2,8 @@ name: Run benchmarks on push on: push: branches: [main, develop] + # temporary for debugging + pull_request: concurrency: # Cancel intermediate builds always diff --git a/asv.conf.json b/asv.conf.json index 98f1a9b282..93c5c8a47a 100644 --- a/asv.conf.json +++ b/asv.conf.json @@ -25,10 +25,12 @@ // "uninstall_command": ["return-code=any python -mpip uninstall -y {project}"], "build_command": [ "/bin/rm -rf pybind11", - "/usr/bin/git clone --depth 1 --branch v2.6.2 https://github.com/pybind/pybind11.git", - "python setup.py build", - "PIP_NO_BUILD_ISOLATION=false python -mpip wheel --no-deps --no-index -w {build_cache_dir} {build_dir}" + "/usr/bin/git clone --depth 1 --branch v2.11.1 https://github.com/pybind/pybind11.git", + "python -m pip install build", + "python -m build --wheel -o {build_cache_dir} {build_dir}" ], + "build_cache_dir": ".asv/cache", + "build_dir": ".asv/build", // List of branches to benchmark. If not provided, defaults to "master" // (for git) or "default" (for mercurial).