Merge pull request #1 from CodSpeedHQ/feat/install-codspeed #2
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 | |
on: | |
push: | |
branches: | |
- main # Run on pushes to the main branch | |
pull_request: # Run on all pull requests | |
jobs: | |
codspeed: | |
name: Run benchmarks | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Setup Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: "3.13" | |
- name: Install dependencies | |
run: pip install pytest pytest-codspeed | |
- uses: CodSpeedHQ/action@v3 | |
with: | |
run: pytest tests/ --codspeed | |
token: ${{ secrets.CODSPEED_TOKEN }} # Optional for public repositories |