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

Fix ASV benchmark configuration issues; don't run benchmarks on non-master fork branches #1542

Merged
merged 10 commits into from
Nov 11, 2022
Merged
Show file tree
Hide file tree
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
15 changes: 8 additions & 7 deletions .github/workflows/asv_check.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,15 @@
name: asv

# CI ASV CHECK is aimed to verify that the benchmarks execute without error.
on: [pull_request, push]
on:
push:
branches:
- master
pull_request:


jobs:
quick:
quick-benchmarks:
runs-on: ubuntu-latest
defaults:
run:
Expand All @@ -27,8 +32,4 @@ jobs:
run: |
cd benchmarks
asv machine --yes
asv run HEAD^! --quick --dry-run --show-stderr | sed "/failed$/ s/^/##[error]/" | tee benchmarks.log
if grep "failed" benchmarks.log > /dev/null ; then
exit 1
fi

asv run HEAD^! --quick --dry-run --show-stderr
9 changes: 5 additions & 4 deletions benchmarks/asv.conf.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,9 @@
//
// "install_command": ["in-dir={env_dir} python -mpip install {wheel_file}"],
// "uninstall_command": ["return-code=any python -mpip uninstall -y {project}"],
// "build_command": [
// "python setup.py build",
// "PIP_NO_BUILD_ISOLATION=false python -mpip wheel --no-deps --no-index -w {build_cache_dir} {build_dir}"
// ],
"build_command": [
"python -m build -o {build_cache_dir}",
],

// List of branches to benchmark. If not provided, defaults to "master"
// (for git) or "default" (for mercurial).
Expand Down Expand Up @@ -115,6 +114,7 @@
// minimum supported versions
{
"python": "3.7",
"build": "",
"numpy": "1.16.0",
"pandas": "0.25.0",
"scipy": "1.2.0",
Expand All @@ -126,6 +126,7 @@
// latest versions available
{
"python": "3.8",
"build": "",
"numpy": "",
"pandas": "",
"scipy": "",
Expand Down