Skip to content

chore(deps): bump astral-sh/setup-uv from 7.1.5 to 7.2.0 #56

chore(deps): bump astral-sh/setup-uv from 7.1.5 to 7.2.0

chore(deps): bump astral-sh/setup-uv from 7.1.5 to 7.2.0 #56

Workflow file for this run

---
name: Benchmark
on:
pull_request:
branches: [main]
paths:
- ".github/workflows/benchmark.yml"
- "pyproject.toml"
- "src/**"
- "tests/benchmarks/**"
- "uv.lock"
push:
branches: [main]
paths:
- ".github/workflows/benchmark.yml"
- "pyproject.toml"
- "src/**"
- "tests/benchmarks/**"
- "uv.lock"
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
permissions:
contents: read
jobs:
benchmark:
name: "Benchmark (${{ matrix.shard }})"
runs-on: ubuntu-latest
timeout-minutes: 5
permissions:
contents: read
id-token: write
strategy:
fail-fast: false
matrix:
include:
# CI tests only (not slow) for fast PR feedback
# Slow tests excluded - they take ~24s each vs ~7s for CI tests
- shard: "load-reload"
filter: "TestBenchLoad or TestBenchReload"
marker: "benchmark and not slow"
- shard: "get"
filter: "TestBenchGet"
marker: "benchmark and not slow"
- shard: "find"
filter: "TestBenchFind and not TestBenchFindOne"
marker: "benchmark and not slow"
- shard: "find-one-delete"
filter: "TestBenchFindOne or TestBenchDelete"
- shard: "write-compact"
filter: "TestBenchPut or TestBenchBatchWrite or TestBenchCompact"
- shard: "all-keys-items"
filter: "TestBenchAll or TestBenchKeys or TestBenchItems"
marker: "benchmark and not slow"
- shard: "count-has"
filter: "TestBenchCount or TestBenchHas"
marker: "benchmark and not slow"
steps:
- name: Checkout code
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
- name: Install uv
uses: astral-sh/setup-uv@61cb8a9741eeb8a550a1b8544337180c0fc8476b # v7.2.0
with:
python-version: "3.10"
enable-cache: true
- name: Run benchmarks
uses: CodSpeedHQ/action@346a2d8a8d9d38909abd0bc3d23f773110f076ad # v4.4.1
with:
mode: simulation
run: uv run pytest -m "${{ matrix.marker || 'benchmark' }}" -k "${{ matrix.filter }}" --codspeed