Skip to content

Commit

Permalink
add workflow for running the benchmark process
Browse files Browse the repository at this point in the history
  • Loading branch information
hrodmn committed Dec 6, 2024
1 parent 03de8c7 commit d49e473
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/benchmark.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Benchmark

on:
workflow_dispatch:

permissions:
id-token: write
contents: write

jobs:
tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Install uv
uses: astral-sh/setup-uv@v3
with:
version: "0.5.*"
enable-cache: true

- name: Install dependencies
run: |
uv sync
git restore .
- name: Run benchmark
run: |
uv run pytest -vv --benchmark-only --benchmark-json benchmark.json
- name: Commit benchmark results
run: |
git config --local user.email "github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
git add benchmark.json
git commit -m "Update benchmark results" || echo "No changes to commit"
git push

0 comments on commit d49e473

Please sign in to comment.