Skip to content

Commit

Permalink
Add Python3.12 in CI config
Browse files Browse the repository at this point in the history
  • Loading branch information
pankajastro committed May 7, 2024
1 parent 3fd9d74 commit 227d777
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 deletions.
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 @@ -215,7 +215,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 @@ -319,7 +319,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 @@ -418,7 +418,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 @@ -517,7 +517,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 @@ -608,7 +608,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 @@ -673,7 +673,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

0 comments on commit 227d777

Please sign in to comment.