Skip to content

Commit 8524911

Browse files
authored
[ci] Add ci support for python 3.12 (#705)
* [ci] Add support for python 3.12 * Add `setuptools` in `requirements-dev.txt`
1 parent 2bb2f9e commit 8524911

File tree

3 files changed

+8
-7
lines changed

3 files changed

+8
-7
lines changed

.github/workflows/CI-models.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
strategy:
2323
fail-fast: false
2424
matrix:
25-
python-version: [ "3.9", "3.10", "3.11"]
25+
python-version: [ "3.9", "3.10", "3.11", "3.12"]
2626

2727
steps:
2828
- uses: actions/checkout@v4
@@ -70,7 +70,7 @@ jobs:
7070
strategy:
7171
fail-fast: false
7272
matrix:
73-
python-version: [ "3.9", "3.10", "3.11"]
73+
python-version: [ "3.9", "3.10", "3.11", "3.12"]
7474

7575
steps:
7676
- uses: actions/checkout@v4
@@ -119,7 +119,7 @@ jobs:
119119
strategy:
120120
fail-fast: false
121121
matrix:
122-
python-version: ["3.9", "3.10", "3.11"]
122+
python-version: ["3.9", "3.10", "3.11", "3.12"]
123123

124124
steps:
125125
- uses: actions/checkout@v4
@@ -132,7 +132,7 @@ jobs:
132132
python -m pip install --upgrade pip
133133
python -m pip install numpy>=1.21.0
134134
python -m pip install -r requirements-dev.txt
135-
python -m pip install tqdm brainpylib
135+
python -m pip install tqdm
136136
pip uninstall brainpy -y
137137
python setup.py install
138138
- name: Test with pytest

.github/workflows/CI.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
strategy:
2929
fail-fast: false
3030
matrix:
31-
python-version: [ "3.9", "3.10", "3.11" ]
31+
python-version: [ "3.9", "3.10", "3.11", "3.12" ]
3232

3333
steps:
3434
- name: Cancel Previous Runs
@@ -59,7 +59,7 @@ jobs:
5959
strategy:
6060
fail-fast: false
6161
matrix:
62-
python-version: [ "3.9", "3.10", "3.11" ]
62+
python-version: [ "3.9", "3.10", "3.11", "3.12" ]
6363

6464
steps:
6565
- name: Cancel Previous Runs
@@ -92,7 +92,7 @@ jobs:
9292
strategy:
9393
fail-fast: false
9494
matrix:
95-
python-version: [ "3.9", "3.10", "3.11" ]
95+
python-version: [ "3.9", "3.10", "3.11", "3.12" ]
9696

9797
steps:
9898
- name: Cancel Previous Runs

requirements-dev.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ braintaichi
99
numba
1010
brainstate
1111
braintools
12+
setuptools
1213

1314

1415
# test requirements

0 commit comments

Comments
 (0)