Skip to content

Commit

Permalink
try fixing benchmarks
Browse files Browse the repository at this point in the history
  • Loading branch information
skshetry committed Jul 28, 2024
1 parent ffa6839 commit 0a86c39
Showing 1 changed file with 6 additions and 11 deletions.
17 changes: 6 additions & 11 deletions .github/workflows/benchmark.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,27 +29,22 @@ jobs:
with:
python-version: '3.11'

- name: Upgrade pip and nox
run: python -m pip install --upgrade pip nox pytest-benchmark

- uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.base.sha }}
fetch-depth: 0
path: base

- name: Benchmark on base branch
run: nox -s bench -- --benchmark-save=base

- uses: actions/checkout@v4
with:
fetch-depth: 0
path: pr

- name: Upgrade pip and nox
run: python -m pip install --upgrade pip nox pytest-benchmark

- name: Benchmark on base branch
working-directory: base
run: |
nox -s bench -- --benchmark-save=base

- name: Benchmark on pull request
working-directory: pr
run: |
nox -s bench -- --benchmark-save=${GITHUB_SHA::7} --benchmark-compare=0001 --benchmark-compare-fail=mean:10%
Expand Down

0 comments on commit 0a86c39

Please sign in to comment.