-
Notifications
You must be signed in to change notification settings - Fork 356
35 lines (34 loc) · 1003 Bytes
/
benchmark_base.yml
File metadata and controls
35 lines (34 loc) · 1003 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
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@v4
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"