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