Skip to content

Refactor distance metrics in _metric.pyx #77

Refactor distance metrics in _metric.pyx

Refactor distance metrics in _metric.pyx #77

Workflow file for this run

name: benchmarks
on:
push:
branches:
- "master"
pull_request:
workflow_dispatch:
jobs:
benchmarks:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Install dependencies
run: pip install -r requirements.txt
- name: Install current version
run: pip install .
- name: Install development dependencies
run: pip install -r requirements-dev.txt
- name: Install pytest-codspeed
run: |
pip uninstall -y pytest-benchmark
pip install pytest-codspeed
- name: Run benchmarks
uses: CodSpeedHQ/action@v3
with:
token: ${{ secrets.CODSPEED_TOKEN }}
run: pytest tests/ --codspeed