Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Python3.12 in CI config #2154

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions .github/workflows/ci-python-sdk.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-python@v3
with:
python-version: '3.10'
python-version: '3.12'
architecture: 'x64'
- uses: actions/cache@v3
with:
Expand All @@ -108,7 +108,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-python@v3
with:
python-version: '3.10'
python-version: '3.12'
architecture: 'x64'
- uses: actions/cache@v3
with:
Expand Down Expand Up @@ -176,7 +176,7 @@ jobs:

- uses: actions/setup-python@v3
with:
python-version: '3.10'
python-version: '3.12'
architecture: 'x64'
- uses: actions/cache@v3
with:
Expand Down Expand Up @@ -217,7 +217,7 @@ jobs:
Run-Unit-tests-Airflow-2-8:
strategy:
matrix:
version: [ '3.8', '3.9', '3.10', '3.11' ]
version: [ '3.8', '3.9', '3.10', '3.11', '3.12' ]
if: >-
github.event_name == 'push' ||
(
Expand Down Expand Up @@ -321,7 +321,7 @@ jobs:
if: github.event_name == 'pull_request_target'
- uses: actions/setup-python@v3
with:
python-version: '3.10'
python-version: '3.12'
architecture: 'x64'
- uses: actions/cache@v3
with:
Expand Down Expand Up @@ -422,7 +422,7 @@ jobs:
if: github.event_name == 'pull_request_target'
- uses: actions/setup-python@v3
with:
python-version: '3.10'
python-version: '3.12'
architecture: 'x64'
- uses: actions/cache@v3
with:
Expand Down Expand Up @@ -523,7 +523,7 @@ jobs:
if: github.event_name == 'pull_request_target'
- uses: actions/setup-python@v3
with:
python-version: '3.10'
python-version: '3.12'
architecture: 'x64'
- uses: actions/cache@v3
with:
Expand Down Expand Up @@ -616,7 +616,7 @@ jobs:
- name: Set up Python 3.10
uses: actions/setup-python@v3
with:
python-version: '3.10'
python-version: '3.12'
- name: Install coverage
run: |
pip3 install coverage
Expand Down Expand Up @@ -681,7 +681,7 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: '3.10'
python-version: '3.12'
architecture: 'x64'
- uses: actions/cache@v2
with:
Expand Down
10 changes: 5 additions & 5 deletions python-sdk/noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
nox.options.reuse_existing_virtualenvs = True


@nox.session(python="3.10")
@nox.session(python="3.12")
def dev(session: nox.Session) -> None:
"""Create a dev environment with everything installed.

Expand All @@ -19,8 +19,8 @@ def dev(session: nox.Session) -> None:
session.install("-e", ".[all,tests]")


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


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


@nox.session(python="3.10")
@nox.session(python="3.12")
def build_docs(session: nox.Session) -> None:
"""Build release artifacts."""
session.install("-e", ".[doc]")
Expand Down
Loading