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

Update GitHub Actions workflow to run PR benchmark changes in CI #92

Merged
merged 10 commits into from
Jul 6, 2023
12 changes: 1 addition & 11 deletions .github/workflows/run-benchmarks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,8 @@ jobs:

steps:

- name: Checkout SymPy
- name: Checkout SymPy Benchmarks
uses: actions/checkout@v3
with:
repository: sympy/sympy
fetch-depth: 0

- name: Setup Python
uses: actions/setup-python@v3
Expand All @@ -26,13 +23,6 @@ jobs:
python -m pip install --upgrade pip
pip install virtualenv asv

- name: Setup access to branches
run: |
git submodule add https://github.com/sympy/sympy_benchmarks.git
git remote add upstream https://github.com/sympy/sympy.git
git fetch upstream master
git fetch upstream 1.12

- name: Configure benchmarks
run: asv machine --yes --config asv.conf.actions.json

Expand Down
9 changes: 4 additions & 5 deletions asv.conf.actions.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

// This list needs to be updated after each release of sympy. The branch to
// be checked should always be the previous release.
"branches": ["upstream/1.11", "upstream/master", "HEAD"], // for git
"branches": ["1.12", "master", "HEAD"], // for git
// "branches": ["tip"], // for mercurial

// The DVCS being used. If not set, it will be automatically
Expand Down Expand Up @@ -57,16 +57,15 @@

// The directory (relative to the current directory) that benchmarks are
// stored in. If not provided, defaults to "benchmarks"
"benchmark_dir": "sympy_benchmarks/benchmarks",
// "benchmark_dir": "benchmarks",

// The directory (relative to the current directory) to cache the Python
// environments in. If not provided, defaults to "env"
"env_dir": "sympy_benchmarks/env",

// "env_dir": "env",

// The directory (relative to the current directory) that raw benchmark
// results are stored in. If not provided, defaults to "results".
"results_dir": "sympy_benchmarks/results"
// "results_dir": "results"

// The directory (relative to the current directory) that the html tree
// should be written to. If not provided, defaults to "html".
Expand Down