Skip to content

Commit 3ea24a3

Browse files
[CI] Use Python 3.12 as default for tests (#632)
* [CI] Use Python 3.12 as default for tests * Add Python 3.12 to the Linux test matrix. * Use Python 3.12 as the default Python for all other CI tests. * [CI] Remove jax upper bounds for testing * reset caps on jax * Update requirements_all.txt * Update setup.py * Update setup.py * Update requirements_all.txt * Update requirements_all.txt * Update requirements_all.txt --------- Co-authored-by: Cédric Vincent-Cuaz <cedvincentcuaz@gmail.com>
1 parent a195660 commit 3ea24a3

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

.github/workflows/build_tests.yml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ on:
44
workflow_dispatch:
55
pull_request:
66
branches:
7-
- 'master'
7+
- 'master'
88
push:
99
branches:
10-
- 'master'
10+
- 'master'
1111
create:
1212
branches:
1313
- 'master'
@@ -22,7 +22,7 @@ jobs:
2222
strategy:
2323
max-parallel: 4
2424
matrix:
25-
python-version: ["3.8", "3.9", "3.10", "3.11"]
25+
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
2626

2727
steps:
2828
- uses: actions/checkout@v4
@@ -49,14 +49,14 @@ jobs:
4949
if: "!contains(github.event.head_commit.message, 'no pep8')"
5050
steps:
5151
- uses: actions/checkout@v4
52-
- name: Set up Python
52+
- name: Set up Python
5353
uses: actions/setup-python@v5
5454
with:
55-
python-version: "3.10"
55+
python-version: "3.x"
5656
- name: Install dependencies
5757
run: |
5858
python -m pip install --upgrade pip setuptools
59-
pip install flake8
59+
pip install flake8
6060
- name: Lint with flake8
6161
run: |
6262
# stop the build if there are Python syntax errors or undefined names
@@ -70,10 +70,10 @@ jobs:
7070
if: "!contains(github.event.head_commit.message, 'no ci')"
7171
steps:
7272
- uses: actions/checkout@v4
73-
- name: Set up Python
73+
- name: Set up Python
7474
uses: actions/setup-python@v5
7575
with:
76-
python-version: "3.10"
76+
python-version: "3.12"
7777
- name: Install dependencies
7878
run: |
7979
python -m pip install --upgrade pip setuptools
@@ -94,7 +94,7 @@ jobs:
9494
max-parallel: 4
9595
matrix:
9696
os: [macos-latest, macos-13]
97-
python-version: ["3.11"]
97+
python-version: ["3.12"]
9898

9999
steps:
100100
- uses: actions/checkout@v4
@@ -109,7 +109,7 @@ jobs:
109109
run: |
110110
python -m pip install --upgrade pip setuptools
111111
pip install -r requirements_all.txt
112-
pip install pytest
112+
pip install pytest
113113
- name: Run tests
114114
run: |
115115
python -m pytest --durations=20 -v test/ ot/ --color=yes
@@ -121,7 +121,7 @@ jobs:
121121
strategy:
122122
max-parallel: 4
123123
matrix:
124-
python-version: ["3.11"]
124+
python-version: ["3.12"]
125125

126126
steps:
127127
- uses: actions/checkout@v4

requirements_all.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ numpy>=1.20
22
scipy>=1.6
33
matplotlib
44
autograd
5-
pymanopt
5+
pymanopt @ git+https://github.com/pymanopt/pymanopt.git@master
66
cvxopt
77
scikit-learn
88
torch

0 commit comments

Comments
 (0)