From 543243c3017e413584f27ebd4b99c844f62deb34 Mon Sep 17 00:00:00 2001 From: Nicolas Patry Date: Wed, 26 Feb 2025 12:18:23 +0100 Subject: [PATCH] Fixing benchmarks. (#580) * Fixing benchmarks. * Fix test line. --- .github/workflows/python-bench.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/python-bench.yml b/.github/workflows/python-bench.yml index fafeddb..0662e8f 100644 --- a/.github/workflows/python-bench.yml +++ b/.github/workflows/python-bench.yml @@ -3,6 +3,7 @@ on: push: branches: - main + pull_request: permissions: @@ -15,6 +16,8 @@ jobs: benchmark: name: Performance regression check runs-on: ubuntu-latest + env: + MATURIN_PEP517_ARGS: "--features py311,pyo3/extension-module" steps: - uses: actions/checkout@v3 - name: Install Rust @@ -26,7 +29,7 @@ jobs: - name: Install Python uses: actions/setup-python@v2 with: - python-version: "3.10" + python-version: "3.11" architecture: "x64" - name: Install @@ -38,7 +41,7 @@ jobs: - name: Run tests working-directory: ./bindings/python run: | - cargo test + cargo test --features py311 pytest --benchmark-json output.json benches/ # Download previous benchmark result from cache (if exists) - name: Download previous benchmark data -- 2.43.0