Skip to content

Commit

Permalink
Merge pull request #92 from brocksam/update-actions-workflow
Browse files Browse the repository at this point in the history
Update GitHub Actions workflow to run PR benchmark changes in CI
  • Loading branch information
oscarbenjamin authored Jul 6, 2023
2 parents 5563b6d + d85dafb commit 49dea3d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 16 deletions.
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

0 comments on commit 49dea3d

Please sign in to comment.