Bump actions/checkout from 4 to 6 (#12) #38
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 | |
| id-token: write | |
| jobs: | |
| codspeed: | |
| name: Run benchmarks | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Setup Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.12" | |
| - name: Install dependencies | |
| run: pip install -r requirements.txt | |
| - name: Build Python package with maturin | |
| uses: PyO3/maturin-action@v1 | |
| with: | |
| args: --release --out dist | |
| - name: Install base64_utils | |
| run: pip install base64_utils --no-index --find-links dist --force-reinstall | |
| - name: Run benchmarks | |
| uses: CodSpeedHQ/action@v4.5.2 | |
| with: | |
| mode: simulation | |
| run: pytest tests/test_benchmarks.py --codspeed |