Repository navigation
ci: Run CodSpeed benchmarks in simulation on GitHub-hosted runners #9
Workflow file for this run
This file contains hidden or 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 | |
| pull_request: | |
| workflow_dispatch: | |
| permissions: | |
| contents: read # Check out the repository and its submodules | |
| id-token: write # Authenticate result uploads to CodSpeed via OIDC | |
| jobs: | |
| benchmarks: | |
| name: Run benchmarks | |
| runs-on: ${{ vars.CODSPEED_RUNS_ON }} | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| with: | |
| submodules: recursive | |
| persist-credentials: false | |
| - name: Set up Python | |
| uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7.1.0 | |
| with: | |
| python-version: '3.13' | |
| - name: Install Poetry | |
| run: pip install poetry | |
| - name: Run benchmarks | |
| uses: CodSpeedHQ/action@78102a468f96d8e0ccb92d0ec49425753fc42062 # v5.6.0 | |
| with: | |
| mode: ${{ vars.CODSPEED_MODE }} | |
| run: make benchmark |