Skip to content

Fix #524: return non-finite floats unchanged from naturaltime() and precisedelta() #407

Fix #524: return non-finite floats unchanged from naturaltime() and precisedelta()

Fix #524: return non-finite floats unchanged from naturaltime() and precisedelta() #407

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.3.2
- 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.6.0
with:
mode: simulation
run: pytest tests/test_benchmarks.py --codspeed