chore(deps): update numpy requirement in the deps group #7
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: Main Benchmark | |
on: | |
push: | |
branches: | |
- main | |
permissions: | |
contents: write | |
deployments: write | |
jobs: | |
benchmark: | |
name: Run pytest-benchmark | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python 3.12 | |
uses: actions/setup-python@v5 | |
with: | |
python-version: "3.12" | |
cache: 'pip' | |
- name: Setup dependencies | |
run: | | |
python -m venv .venv | |
source .venv/bin/activate | |
pip install uv | |
uv pip compile --extra=dev pyproject.toml -o requirements.txt | |
uv pip sync requirements.txt | |
- run: echo "$PWD/.venv/bin" >> $GITHUB_PATH | |
- name: Run benchmark | |
run: pytest --benchmark-only --benchmark-json output.json | |
- name: Store benchmark result | |
uses: benchmark-action/github-action-benchmark@v1 | |
with: | |
name: Python Benchmark with pytest-benchmark | |
tool: 'pytest' | |
output-file-path: output.json | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
auto-push: true |