4.14.2-rc.0 (2024-08-20) #25
Workflow file for this run
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
on: | |
push: | |
branches: master | |
release: | |
types: [published] | |
workflow_dispatch: | |
description: "Manually update benchmarks" | |
jobs: | |
benchmark_base_branch: | |
name: Continuous Benchmarking with Bencher | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python 3.9 | |
uses: actions/setup-python@v2 | |
with: | |
python-version: '3.9' | |
- uses: actions/cache@v2 | |
with: | |
path: .venv | |
key: poetry-${{ hashFiles('poetry.lock') }} | |
- uses: bencherdev/bencher@main | |
- name: Track base branch benchmarks with Bencher | |
run: | | |
. scripts/ci_install_deps | |
bencher run \ | |
--project pyquil \ | |
--token '${{ secrets.BENCHER_API_TOKEN }}' \ | |
--branch master \ | |
--testbed ci-runner-linux \ | |
--adapter python_pytest \ | |
--err \ | |
--file results.json \ | |
"poetry run pytest --benchmark-json results.json test/benchmarks" |