Skip to content

Commit 0e277df

Browse files
committed
Add Python3.12 in CI config
1 parent 149dd9e commit 0e277df

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:
@@ -217,7 +217,7 @@ jobs:
217217
Run-Unit-tests-Airflow-2-8:
218218
strategy:
219219
matrix:
220-
version: [ '3.8', '3.9', '3.10', '3.11' ]
220+
version: [ '3.8', '3.9', '3.10', '3.11', '3.12' ]
221221
if: >-
222222
github.event_name == 'push' ||
223223
(
@@ -321,7 +321,7 @@ jobs:
321321
if: github.event_name == 'pull_request_target'
322322
- uses: actions/setup-python@v3
323323
with:
324-
python-version: '3.10'
324+
python-version: '3.12'
325325
architecture: 'x64'
326326
- uses: actions/cache@v3
327327
with:
@@ -422,7 +422,7 @@ jobs:
422422
if: github.event_name == 'pull_request_target'
423423
- uses: actions/setup-python@v3
424424
with:
425-
python-version: '3.10'
425+
python-version: '3.12'
426426
architecture: 'x64'
427427
- uses: actions/cache@v3
428428
with:
@@ -523,7 +523,7 @@ jobs:
523523
if: github.event_name == 'pull_request_target'
524524
- uses: actions/setup-python@v3
525525
with:
526-
python-version: '3.10'
526+
python-version: '3.12'
527527
architecture: 'x64'
528528
- uses: actions/cache@v3
529529
with:
@@ -616,7 +616,7 @@ jobs:
616616
- name: Set up Python 3.10
617617
uses: actions/setup-python@v3
618618
with:
619-
python-version: '3.10'
619+
python-version: '3.12'
620620
- name: Install coverage
621621
run: |
622622
pip3 install coverage
@@ -681,7 +681,7 @@ jobs:
681681
- uses: actions/checkout@v2
682682
- uses: actions/setup-python@v2
683683
with:
684-
python-version: '3.10'
684+
python-version: '3.12'
685685
architecture: 'x64'
686686
- uses: actions/cache@v2
687687
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)