Refactor distance metrics in _metric.pyx #77
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |