Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
48 commits
Select commit Hold shift + click to select a range
e0c7e06
Refactor matrix operations to use brainevent for COO and CSR handling
chaoming0625 Jun 1, 2025
c53057d
[refactor] Replace braintaichi with brainevent for CSR matrix operations
chaoming0625 Jun 1, 2025
4c43d14
[refactor] Replace braintaichi with brainevent in matrix vector opera…
chaoming0625 Jun 1, 2025
3128ba5
[update] Initialize seed with random integer if not provided in matri…
chaoming0625 Jun 1, 2025
defd5d1
refactor: Update Variable class to inherit from brainstate.State and …
chaoming0625 Jun 1, 2025
616c076
refactor: Update dependencies in requirements files and setup.py to i…
chaoming0625 Jun 1, 2025
a8f5b6d
refactor: Restructure Array class to inherit from Base and streamline…
chaoming0625 Jun 1, 2025
590dd06
refactor: Remove unused control functions from oo_transform.py
chaoming0625 Jun 1, 2025
264e11c
refactor: Remove unused control functions from oo_transform.py
chaoming0625 Jun 1, 2025
6a4454c
refactor: Remove unused control functions from oo_transform.py
chaoming0625 Jun 1, 2025
dfded4e
bump: Update version to 2.6.2 and remove JAX version assertion
chaoming0625 Jun 1, 2025
71727fd
refactor: Remove unused argument from JIT function calls in runners.py
chaoming0625 Jun 1, 2025
6164ae6
refactor: Update integral calls to use .value attributes in multiple …
chaoming0625 Jun 20, 2025
c4f6ad7
refactor: Remove unused imports and dependencies related to braintaichi
chaoming0625 Jun 20, 2025
b7913da
refactor: Remove commented-out TestPureFuncJacobian class and its met…
chaoming0625 Jun 20, 2025
23da33d
build: add pyproject.toml to support UV installation
Routhleck Jun 22, 2025
f107719
Remove `bm.make_loop`
Routhleck Jun 22, 2025
6f30df5
Comment out bm.clear_buffer_memory() in test_aligns.py
Routhleck Jun 26, 2025
12bd117
Refactor Base to BaseArray and update usages
Routhleck Jul 2, 2025
2976c71
Add check to regenerate random state if deleted
Routhleck Jul 2, 2025
8d924dd
Refactor Array references to BaseArray in delayvars.py
Routhleck Jul 2, 2025
8dad989
Fix random state regeneration logic in RandomState
Routhleck Jul 2, 2025
23248e6
Fix argument names in scan and while_loop wrappers
Routhleck Jul 2, 2025
b287b73
refactor: Simplify function arguments and update progress bar paramet…
chaoming0625 Jul 30, 2025
a8ef525
Merge branch 'update' of https://github.com/brainpy/BrainPy into update
chaoming0625 Jul 30, 2025
1e7ed83
chore: Update CI configuration to include Python 3.13 and adjust impo…
chaoming0625 Jul 30, 2025
95a9560
refactor: Remove clear_buffer_memory calls from various test files
chaoming0625 Jul 30, 2025
360d1c5
refactor: Replace Array with BaseArray in multiple files for consistency
chaoming0625 Jul 30, 2025
5248d48
refactor: Update function calls and type checks for consistency and c…
chaoming0625 Jul 30, 2025
da50685
refactor: Adjust import formatting for improved readability
chaoming0625 Jul 30, 2025
d6c4cf0
chore: Bump version to 3.0.0
chaoming0625 Jul 30, 2025
77b65f2
refactor: Reorganize import statements for improved structure and rea…
chaoming0625 Jul 30, 2025
7913f07
Enhance ifelse and while_loop for better branch handling
Routhleck Jul 31, 2025
3f74c0a
Add comparison operator overrides to Variable class
Routhleck Jul 31, 2025
c9a3ba7
Improve while_loop state handling and update tests
Routhleck Jul 31, 2025
765ab9e
Improve robustness in offline training and random tests
Routhleck Jul 31, 2025
7667050
Isolate problematic tests in CI and improve test reliability
Routhleck Jul 31, 2025
6f3f60b
Improve test runner output and add timing info
Routhleck Jul 31, 2025
90761f2
Update pytest_groups.py
Routhleck Jul 31, 2025
1280296
Remove emoji icons from test output messages
Routhleck Jul 31, 2025
8efb3bb
Add parallel test support and improve test isolation
Routhleck Jul 31, 2025
7184b52
Improve CI failure output for test runs
Routhleck Jul 31, 2025
34dd114
revert ci workflow
Routhleck Jul 31, 2025
ea1af93
Merge branch 'update' of https://github.com/brainpy/BrainPy into update
Routhleck Jul 31, 2025
806ef37
refactor: Enhance structure and readability by updating class inherit…
chaoming0625 Jul 31, 2025
5eaf49c
refactor: Update variable access and simplify CI test command
chaoming0625 Jul 31, 2025
f223448
refactor: Add save functionality to test for training with ridge
chaoming0625 Jul 31, 2025
9b44b58
refactor: Add save functionality to training tests in test_ESN.py
chaoming0625 Jul 31, 2025
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
144 changes: 33 additions & 111 deletions .github/workflows/CI-models.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: [ "3.10", "3.11", "3.12"]
python-version: [ "3.10", "3.11", "3.12", "3.13" ]

steps:
- uses: actions/checkout@v4
Expand All @@ -40,128 +40,50 @@ jobs:
run: |
pytest tests/

# test_linux_py37:
# runs-on: ubuntu-latest
# if: github.event.pull_request.merged == true
# strategy:
# fail-fast: false
# matrix:
# python-version: ["3.7"]
#
# steps:
# - uses: actions/checkout@v4
# - name: Set up Python ${{ matrix.python-version }}
# uses: actions/setup-python@v5
# with:
# python-version: ${{ matrix.python-version }}
# - name: Install dependencies
# run: |
# if [ -f requirements-dev.txt ]; then pip install -r requirements-dev.txt; fi
# pip install jax==0.3.25
# pip install jaxlib==0.3.25
# pip uninstall brainpy -y
# python setup.py install
# - name: Test with pytest
# run: |
# pytest tests/

test_macos:
runs-on: macos-latest
strategy:
fail-fast: false
matrix:
python-version: [ "3.10", "3.11", "3.12"]
python-version: [ "3.10", "3.11", "3.12", "3.13" ]

steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
if [ -f requirements-dev.txt ]; then pip install -r requirements-dev.txt; fi
pip uninstall brainpy -y
python setup.py install
- name: Test with pytest
run: |
pytest tests/

# test_macos_py37:
# runs-on: macos-latest
# if: github.event.pull_request.merged == true
# strategy:
# fail-fast: false
# matrix:
# python-version: [ "3.7" ]
#
# steps:
# - uses: actions/checkout@v4
# - name: Set up Python ${{ matrix.python-version }}
# uses: actions/setup-python@v5
# with:
# python-version: ${{ matrix.python-version }}
# - name: Install dependencies
# run: |
# if [ -f requirements-dev.txt ]; then pip install -r requirements-dev.txt; fi
# pip install jax==0.3.25
# pip install jaxlib==0.3.25
# pip uninstall brainpy -y
# python setup.py install
# - name: Test with pytest
# run: |
# pytest tests/

- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
if [ -f requirements-dev.txt ]; then pip install -r requirements-dev.txt; fi
pip uninstall brainpy -y
python setup.py install
- name: Test with pytest
run: |
pytest tests/

test_windows:
runs-on: windows-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.10", "3.11", "3.12"]
python-version: [ "3.10", "3.11", "3.12", "3.13" ]

steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install numpy>=1.21.0
python -m pip install -r requirements-dev.txt
python -m pip install tqdm
pip uninstall brainpy -y
python setup.py install
- name: Test with pytest
run: |
pytest tests/

# test_windows_py37:
# runs-on: windows-latest
# if: github.event.pull_request.merged == true
# strategy:
# fail-fast: false
# matrix:
# python-version: ["3.7"]
#
# steps:
# - uses: actions/checkout@v4
# - name: Set up Python ${{ matrix.python-version }}
# uses: actions/setup-python@v5
# with:
# python-version: ${{ matrix.python-version }}
# - name: Install dependencies
# run: |
# python -m pip install numpy>=1.21.0
# python -m pip install "jaxlib==0.3.25" -f https://whls.blob.core.windows.net/unstable/index.html --use-deprecated legacy-resolver
# python -m pip install https://github.com/google/jax/archive/refs/tags/jax-v0.3.25.tar.gz
# python -m pip install -r requirements-dev.txt
# python -m pip install tqdm brainpylib
# pip uninstall brainpy -y
# python setup.py install
# - name: Test with pytest
# run: |
# pytest tests/
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install numpy>=1.21.0
python -m pip install -r requirements-dev.txt
python -m pip install tqdm
pip uninstall brainpy -y
python setup.py install
- name: Test with pytest
run: |
pytest tests/
8 changes: 4 additions & 4 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: [ "3.10", "3.11", "3.12" ]
python-version: [ "3.10", "3.11", "3.12", "3.13" ]

steps:
- name: Cancel Previous Runs
Expand Down Expand Up @@ -59,7 +59,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: [ "3.10", "3.11", "3.12" ]
python-version: [ "3.10", "3.11", "3.12", "3.13" ]

steps:
- name: Cancel Previous Runs
Expand Down Expand Up @@ -92,7 +92,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: [ "3.10", "3.11", "3.12" ]
python-version: [ "3.10", "3.11", "3.12", "3.13" ]

steps:
- name: Cancel Previous Runs
Expand All @@ -115,4 +115,4 @@ jobs:
- name: Test with pytest
run: |
cd brainpy
set IS_GITHUB_ACTIONS=1 && pytest _src/
pytest _src/
Loading
Loading