Add the parameter sample
to all dimensions selectors.
#50
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@v3 | |
with: | |
fetch-depth: 0 | |
- uses: actions/setup-python@v3 | |
with: | |
python-version: "3.9" | |
- 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@v1 | |
with: | |
token: ${{ secrets.CODSPEED_TOKEN }} | |
run: pytest tests/ --codspeed |