Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

run benchmarks on macos #473

Merged
merged 1 commit into from
Dec 10, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions .github/workflows/benchmark.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,10 @@ permissions: {}

jobs:
benchmark:
runs-on: ubuntu-latest
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-20.04, macos-latest]
env:
PYTEST_BENCHMARK_STORAGE: file://${{ github.workspace }}/.benchmarks
steps:
Expand All @@ -38,7 +41,7 @@ jobs:
path: pr

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

- name: Benchmark on base branch
working-directory: base
Expand All @@ -52,7 +55,6 @@ jobs:
--benchmark-compare=0001
--benchmark-compare-fail=mean:10%

- run: pip install pytest-benchmark
- name: Compare benchmark
if: always()
run: pytest-benchmark compare --group-by name