build(deps): bump gradle/actions from 03ee1e1693f571d64506b3ed4cdf120520300ff2 to c2457a7fb283d2bfe1c94ac0c360c27a79bcffd4 #2104
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: Benchmark | |
| on: | |
| push: | |
| branches: | |
| - master | |
| paths-ignore: | |
| - "*.md" | |
| pull_request: | |
| paths-ignore: | |
| - "*.md" | |
| permissions: | |
| deployments: write | |
| contents: write | |
| jobs: | |
| benchmark: | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| include: | |
| - name: Linux | |
| os: ubuntu-latest | |
| - name: macOS | |
| os: macos-latest | |
| - name: Windows | |
| os: windows-latest | |
| name: ${{ matrix.name }} | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - uses: actions/checkout@v6 | |
| with: | |
| submodules: recursive | |
| - uses: actions/setup-python@v6 | |
| with: | |
| python-version: "3.12" | |
| cache: "pip" | |
| - name: Install Linux dependencies | |
| if: ${{ runner.os == 'Linux' }} | |
| run: | | |
| sudo apt update | |
| sudo apt install -y libcurl4-openssl-dev | |
| - name: Benchmark | |
| shell: bash | |
| run: | | |
| pip install --upgrade --requirement tests/requirements.txt | |
| pytest --verbose --benchmark_out=benchmark.json tests/benchmark.py | |
| - uses: benchmark-action/github-action-benchmark@v1 | |
| if: ${{ github.event_name == 'push' }} | |
| with: | |
| name: ${{ runner.os }} | |
| tool: customSmallerIsBetter | |
| output-file-path: benchmark.json | |
| github-token: ${{ secrets.GITHUB_TOKEN }} | |
| benchmark-data-dir-path: ./ | |
| auto-push: true |