From feef7912b3254b2562610b1d4a5dbad4614a0f34 Mon Sep 17 00:00:00 2001 From: henry Date: Sat, 11 Oct 2025 13:56:07 +0200 Subject: [PATCH] Add codspeed --- .github/workflows/codspeed.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/codspeed.yml diff --git a/.github/workflows/codspeed.yml b/.github/workflows/codspeed.yml new file mode 100644 index 000000000..d94da29b3 --- /dev/null +++ b/.github/workflows/codspeed.yml @@ -0,0 +1,29 @@ +name: CodSpeed Benchmarks + +on: + push: + branches: + - "main" # or "master" + pull_request: + # `workflow_dispatch` allows CodSpeed to trigger backtest + # performance analysis in order to generate initial data. + workflow_dispatch: + +jobs: + benchmarks: + name: Run benchmarks + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + # ... + # Setup your environment here: + # - Configure your Python/Rust/Node version + # - Install your dependencies + # - Build your benchmarks (if using a compiled language) + # ... + - name: Run the benchmarks + uses: CodSpeedHQ/action@v4 + with: + mode: instrumentation + run: + token: ${{ secrets.CODSPEED_TOKEN }} # optional for public repos