Skip to content

Add percentage() and ratio() functions #428

Add percentage() and ratio() functions

Add percentage() and ratio() functions #428

Workflow file for this run

name: Benchmark
on: [push, pull_request, workflow_dispatch]
permissions: {}
env:
FORCE_COLOR: 1
PIP_DISABLE_PIP_VERSION_CHECK: 1
jobs:
benchmarks:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7.0.1
with:
persist-credentials: false
- name: Set up Python
uses: actions/setup-python@v7.1.0
with:
python-version: "3.15"
allow-prereleases: true
- name: Install uv
uses: astral-sh/setup-uv@v10.4.0
- name: Compile translations
run: |
uvx --with tox-uv tox -e compile-translations
- name: Install dependencies
run: pip install -e ".[tests]"
- name: Run benchmarks
uses: CodSpeedHQ/action@v5.8.0
with:
mode: simulation
run: pytest tests/test_benchmarks.py --codspeed