Skip to content

Commit

Permalink
[ci] Add ci support for python 3.12 (#705)
Browse files Browse the repository at this point in the history
* [ci] Add support for python 3.12

* Add `setuptools` in `requirements-dev.txt`
  • Loading branch information
Routhleck authored Dec 5, 2024
1 parent 2bb2f9e commit 8524911
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
8 changes: 4 additions & 4 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.9", "3.10", "3.11"]
python-version: [ "3.9", "3.10", "3.11", "3.12"]

steps:
- uses: actions/checkout@v4
Expand Down Expand Up @@ -70,7 +70,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: [ "3.9", "3.10", "3.11"]
python-version: [ "3.9", "3.10", "3.11", "3.12"]

steps:
- uses: actions/checkout@v4
Expand Down Expand Up @@ -119,7 +119,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: ["3.9", "3.10", "3.11"]
python-version: ["3.9", "3.10", "3.11", "3.12"]

steps:
- uses: actions/checkout@v4
Expand All @@ -132,7 +132,7 @@ jobs:
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 brainpylib
python -m pip install tqdm
pip uninstall brainpy -y
python setup.py install
- name: Test with pytest
Expand Down
6 changes: 3 additions & 3 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.9", "3.10", "3.11" ]
python-version: [ "3.9", "3.10", "3.11", "3.12" ]

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

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

steps:
- name: Cancel Previous Runs
Expand Down
1 change: 1 addition & 0 deletions requirements-dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ braintaichi
numba
brainstate
braintools
setuptools


# test requirements
Expand Down

0 comments on commit 8524911

Please sign in to comment.