-
-
Notifications
You must be signed in to change notification settings - Fork 8
Adds test suite and benchmarks #69
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
Open
BradyPlanden
wants to merge
20
commits into
main
Choose a base branch
from
testing-suite
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+1,419
−53
Open
Changes from 12 commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
23741ef
Fix: CasADi linking to work with pip isolated build environments
BradyPlanden 7551a6d
tests: adds initial test suite w/ basic functionality
BradyPlanden 8dd3ea2
infra: adds __version__ to package, adds nox to dev dependencies w/ u…
BradyPlanden 90ca76c
tests: adds benchmark session, uv backend for nox, updates to unit su…
BradyPlanden ebffa02
benchmarks: remove icons
BradyPlanden 9a70d96
Fix: RPath installation bool, updates PYBAMM_ENV in noxfile, adds nox…
BradyPlanden 11cebde
test: try condition RPATH
BradyPlanden 680e502
fix: precommit, integration workflow missing uv
BradyPlanden ccddae1
benchmarks: update regression threshold, increase repeats, try: fix w…
BradyPlanden 046e98e
fix: integration workflow
BradyPlanden 6abe878
CI: unifi package management
BradyPlanden 184383c
benchmarks: timeit implementation
BradyPlanden afd14d3
test: adds casadi-based integration tests, removes simplistic unit te…
BradyPlanden 1e78371
precommit additions
BradyPlanden 728ec40
Suggestions from review
BradyPlanden dc5427f
precommit additions
BradyPlanden a204965
fix: avoid single-element vector operations for MacOS-intel
BradyPlanden accd07f
another test: separate negate from casadi symbol
BradyPlanden c573675
infra: skip macosx_x86_x64 tests for build_wheels.yml
BradyPlanden c137109
infra: test level skip instead of workflow level
BradyPlanden File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
name: Benchmarks | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- "main" | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
pytest: | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [macos-latest] | ||
python-version: ["3.12"] | ||
|
||
steps: | ||
- uses: actions/checkout@v5 | ||
with: | ||
submodules: 'recursive' | ||
|
||
- name: Install dependencies (macOS) | ||
if: matrix.os == 'macos-15-intel' || matrix.os == 'macos-latest' | ||
env: | ||
HOMEBREW_NO_INSTALL_CLEANUP: 1 | ||
HOMEBREW_NO_AUTO_UPDATE: 1 | ||
HOMEBREW_NO_COLOR: 1 | ||
NONINTERACTIVE: 1 | ||
run: | | ||
brew analytics off | ||
brew install libomp | ||
brew reinstall gcc | ||
|
||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v6 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
|
||
- name: Install uv | ||
run: | | ||
pip install uv | ||
|
||
- name: Run benchmarks | ||
run: | | ||
uvx nox -s benchmarks |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,3 +16,7 @@ build | |
# Extra directories for local work | ||
workspace | ||
deploy | ||
PyBaMM | ||
|
||
# benchmark results | ||
performance_results.json |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All good catches here, thanks! and sorry for the trouble here, I realise I was responsible for all this 😄