1. Create the benchmarks workflow
Create a new workflow to run the benchmarks for your repository. You can do this by creating thecodspeed.yml file in the .github/workflows
directory with the following content:
.github/workflows/codspeed.yml
CodSpeedHQ/action. This action will
configure the CodSpeed environment and upload the benchmarks results.
Make sure to include
pull_request in the on section of the workflow. This is
required to have reports on pull requests correctly working.Learn more about
baseline report selection.Sample configurations
- Python (with
pytest-codspeed) - Rust (with
cargo-codspeed) - Node.js (with
codspeed-nodeand TypeScript)