Skip to content

Commit 57637c7

Browse files
authored
ci: Migrates to Python 3.11 (#32)
This PR migrates CI and tasks to Python 3.11 instead of 3.9, preparing for the upcoming release.
1 parent b173263 commit 57637c7

File tree

5 files changed

+272
-64
lines changed

5 files changed

+272
-64
lines changed

.github/workflows/docs.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,13 @@ jobs:
2020
uses: actions/checkout@v4
2121

2222
- name: Install uv
23-
uses: astral-sh/setup-uv@v3
23+
uses: astral-sh/setup-uv@v5
2424
with:
2525
enable-cache: true
26+
python-version: 3.11
2627

2728
- name: Set up Python and dependencies
2829
run: |
29-
uv python install 3.9
3030
uv sync --all-extras --dev
3131
3232
- name: Build the book

.github/workflows/python.yml

+2
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ jobs:
1616
- "3.9"
1717
- "3.10"
1818
- "3.11"
19+
# JijModeling-transpiler requires python <3.12
20+
# - "3.12"
1921
os:
2022
- ubuntu-latest
2123
- windows-latest

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -165,3 +165,4 @@ cython_debug/
165165

166166
# Jupyter book
167167
_build/
168+
.python-version

pyproject.toml

+2-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@ name = "jijmodeling-tutorial"
33
version = "1.10.1"
44
description = "Tutorial for JijModeling"
55
readme = "README.md"
6-
requires-python = ">=3.9, <3.12" # jijmodeling does not support Python 3.12 yet
6+
# jijmodeling does not support Python 3.13 yet, and JijModeling-Transpiler 3.12 neither.
7+
requires-python = ">=3.9, <3.12"
78
dependencies = [
89
"jijmodeling == 1.12.1",
910
"jijmodeling-transpiler>=0.6.15",

0 commit comments

Comments
 (0)