A faster parser #1110
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: "Benchmarks: Run for PR" | |
| on: | |
| pull_request: | |
| types: [opened, reopened, edited, synchronize] | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| run_benchmarks: | |
| name: Run PR Benchmarks | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install Fandango | |
| uses: ./.github/workflows/setup-fandango | |
| with: | |
| python-version: "3.13" | |
| needs-sudo: true | |
| - name: Run Benchmarks | |
| env: | |
| FANDANGO_FORCE_SKIP_BEARTYPE: "1" | |
| run: | | |
| pytest -n 0 --timeout 1200 --benchmark-json results.json --benchmark-enable --benchmark-only | |
| - name: Upload Benchmark Results | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: results.json | |
| path: ./results.json | |
| - name: Upload GitHub Pull Request Event | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: event.json | |
| path: ${{ github.event_path }} |