Skip to content

Commit 84846b1

Browse files
Add Python 3.11 to the CI matrix (#864)
* Bump min py * Upgrade versioneer for python 3.12 * Update badges * Exit tests after 3 failures and reduce reruns * Bumping Python in container to see if that fixes failures * Build container image for the right Python version * Drop 3.12 for now
1 parent 726f0f8 commit 84846b1

File tree

12 files changed

+1144
-581
lines changed

12 files changed

+1144
-581
lines changed

.github/workflows/helmcluster.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
strategy:
2929
fail-fast: false
3030
matrix:
31-
python-version: ["3.9", "3.10"]
31+
python-version: ["3.9", "3.10", "3.11"]
3232
kubernetes-version: ["1.29.2"]
3333
include:
3434
- python-version: '3.10'
@@ -51,7 +51,7 @@ jobs:
5151
- name: Run tests
5252
env:
5353
KUBERNETES_VERSION: ${{ matrix.kubernetes-version }}
54-
run: pytest dask_kubernetes/common/tests dask_kubernetes/helm/tests
54+
run: pytest --reruns=5 dask_kubernetes/common/tests dask_kubernetes/helm/tests
5555
- name: Debug k8s resources
5656
if: success() || failure()
5757
run: kubectl get all -A

.github/workflows/kubecluster.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
strategy:
2929
fail-fast: false
3030
matrix:
31-
python-version: ["3.9", "3.10"]
31+
python-version: ["3.9", "3.10", "3.11"]
3232
kubernetes-version: ["1.29.2"]
3333
include:
3434
- python-version: '3.10'
@@ -51,7 +51,7 @@ jobs:
5151
- name: Run tests
5252
env:
5353
KUBERNETES_VERSION: ${{ matrix.kubernetes-version }}
54-
run: pytest dask_kubernetes/common/tests dask_kubernetes/classic/tests
54+
run: pytest --reruns=5 dask_kubernetes/common/tests dask_kubernetes/classic/tests
5555
- name: Debug k8s resources
5656
if: success() || failure()
5757
run: kubectl get all -A

.github/workflows/operator.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ jobs:
3939
strategy:
4040
fail-fast: false
4141
matrix:
42-
python-version: ["3.9", "3.10"]
42+
python-version: ["3.9", "3.10", "3.11"]
4343
kubernetes-version: ["1.29.2"]
4444
include:
4545
- python-version: '3.10'
@@ -64,7 +64,7 @@ jobs:
6464
KUBERNETES_VERSION: ${{ matrix.kubernetes-version }}
6565
TEST_ISTIO: "true"
6666
TEST_DASK_GATEWAY: "true"
67-
run: pytest dask_kubernetes/common dask_kubernetes/operator
67+
run: pytest --maxfail=3 --reruns=5 dask_kubernetes/common dask_kubernetes/operator
6868
- name: Debug kubernetes resources
6969
if: always()
7070
run: kubectl get all -A

README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ Dask Kubernetes
3030
:target: https://anaconda.org/conda-forge/dask-kubernetes
3131
:alt: Conda Forge
3232

33-
.. image:: https://img.shields.io/badge/python%20support-3.9%7C3.10-blue
33+
.. image:: https://img.shields.io/badge/python%20support-3.9%7C3.10%7C3.11%7C3.12-blue
3434
:target: https://kubernetes.dask.org/en/latest/installing.html#supported-versions
3535
:alt: Python Support
3636

ci/Dockerfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
FROM ghcr.io/dask/dask:latest-py3.10
1+
ARG PYTHON=3.11
2+
3+
FROM ghcr.io/dask/dask:latest-py${PYTHON}
24

35
# Install latest dev builds of Dask and Distributed
46
RUN pip install git+https://github.com/dask/distributed@main

dask_kubernetes/__init__.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
from warnings import warn
33

44
from . import config
5+
from . import _version
56
from .common.auth import (
67
AutoRefreshConfiguration,
78
AutoRefreshKubeConfigLoader,
@@ -14,11 +15,7 @@
1415
from .helm import HelmCluster
1516

1617
__all__ = ["HelmCluster", "KubeCluster"]
17-
18-
from ._version import get_versions
19-
20-
__version__ = get_versions()["version"]
21-
del get_versions
18+
__version__ = _version.get_versions()["version"]
2219

2320

2421
def __getattr__(name):

0 commit comments

Comments
 (0)