This repository has been archived by the owner on Jun 26, 2024. It is now read-only.
codspeed-benchmarks #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: codspeed-benchmarks | |
on: | |
# Run on pushes to the main branch | |
push: | |
branches: | |
- "master" # or "main" | |
# Run on pull requests | |
pull_request: | |
# `workflow_dispatch` allows CodSpeed to trigger backtest | |
# performance analysis in order to generate initial data. | |
workflow_dispatch: | |
jobs: | |
benchmarks: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
# ... | |
# Setup your environment here: | |
# - Configure your Python/Rust/Node version | |
# - Install your dependencies | |
# - Build your benchmarks (if using a compiled language) | |
# ... | |
- name: Run benchmarks | |
uses: CodSpeedHQ/action@v2 | |
with: | |
token: ${{ secrets.CODSPEED_TOKEN }} | |
run: "<Insert your benchmark command here>" |