Skip to content

Commit 227d777

Browse files
committed
Add Python3.12 in CI config
1 parent 3fd9d74 commit 227d777

File tree

2 files changed

+14
-14
lines changed

2 files changed

+14
-14
lines changed

.github/workflows/ci-python-sdk.yaml

+9-9
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ jobs:
8787
- uses: actions/checkout@v3
8888
- uses: actions/setup-python@v3
8989
with:
90-
python-version: '3.10'
90+
python-version: '3.12'
9191
architecture: 'x64'
9292
- uses: actions/cache@v3
9393
with:
@@ -108,7 +108,7 @@ jobs:
108108
- uses: actions/checkout@v3
109109
- uses: actions/setup-python@v3
110110
with:
111-
python-version: '3.10'
111+
python-version: '3.12'
112112
architecture: 'x64'
113113
- uses: actions/cache@v3
114114
with:
@@ -176,7 +176,7 @@ jobs:
176176

177177
- uses: actions/setup-python@v3
178178
with:
179-
python-version: '3.10'
179+
python-version: '3.12'
180180
architecture: 'x64'
181181
- uses: actions/cache@v3
182182
with:
@@ -215,7 +215,7 @@ jobs:
215215
Run-Unit-tests-Airflow-2-8:
216216
strategy:
217217
matrix:
218-
version: [ '3.8', '3.9', '3.10', '3.11' ]
218+
version: [ '3.8', '3.9', '3.10', '3.11', '3.12' ]
219219
if: >-
220220
github.event_name == 'push' ||
221221
(
@@ -319,7 +319,7 @@ jobs:
319319
if: github.event_name == 'pull_request_target'
320320
- uses: actions/setup-python@v3
321321
with:
322-
python-version: '3.10'
322+
python-version: '3.12'
323323
architecture: 'x64'
324324
- uses: actions/cache@v3
325325
with:
@@ -418,7 +418,7 @@ jobs:
418418
if: github.event_name == 'pull_request_target'
419419
- uses: actions/setup-python@v3
420420
with:
421-
python-version: '3.10'
421+
python-version: '3.12'
422422
architecture: 'x64'
423423
- uses: actions/cache@v3
424424
with:
@@ -517,7 +517,7 @@ jobs:
517517
if: github.event_name == 'pull_request_target'
518518
- uses: actions/setup-python@v3
519519
with:
520-
python-version: '3.10'
520+
python-version: '3.12'
521521
architecture: 'x64'
522522
- uses: actions/cache@v3
523523
with:
@@ -608,7 +608,7 @@ jobs:
608608
- name: Set up Python 3.10
609609
uses: actions/setup-python@v3
610610
with:
611-
python-version: '3.10'
611+
python-version: '3.12'
612612
- name: Install coverage
613613
run: |
614614
pip3 install coverage
@@ -673,7 +673,7 @@ jobs:
673673
- uses: actions/checkout@v2
674674
- uses: actions/setup-python@v2
675675
with:
676-
python-version: '3.10'
676+
python-version: '3.12'
677677
architecture: 'x64'
678678
- uses: actions/cache@v2
679679
with:

python-sdk/noxfile.py

+5-5
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
nox.options.reuse_existing_virtualenvs = True
99

1010

11-
@nox.session(python="3.10")
11+
@nox.session(python="3.12")
1212
def dev(session: nox.Session) -> None:
1313
"""Create a dev environment with everything installed.
1414
@@ -19,8 +19,8 @@ def dev(session: nox.Session) -> None:
1919
session.install("-e", ".[all,tests]")
2020

2121

22-
@nox.session(python=["3.8", "3.9", "3.10", "3.11"])
23-
@nox.parametrize("airflow", ["2.7", "2.8"])
22+
@nox.session(python=["3.8", "3.9", "3.10", "3.11", "3.12"])
23+
@nox.parametrize("airflow", ["2.7", "2.8", "2.9"])
2424
def test(session: nox.Session, airflow) -> None:
2525
"""Run both unit and integration tests."""
2626
env = {
@@ -47,7 +47,7 @@ def test(session: nox.Session, airflow) -> None:
4747
)
4848

4949

50-
@nox.session(python=["3.10"])
50+
@nox.session(python=["3.12"])
5151
def type_check(session: nox.Session) -> None:
5252
"""Run MyPy checks."""
5353
session.install("-e", ".[all,tests]")
@@ -125,7 +125,7 @@ def build(session: nox.Session) -> None:
125125
session.run("python", "-m", "build", *session.posargs)
126126

127127

128-
@nox.session(python="3.10")
128+
@nox.session(python="3.12")
129129
def build_docs(session: nox.Session) -> None:
130130
"""Build release artifacts."""
131131
session.install("-e", ".[doc]")

0 commit comments

Comments
 (0)