diff --git a/.github/workflows/durabletask-azuremanaged.yml b/.github/workflows/durabletask-azuremanaged.yml index 9de61e38..c2c40aee 100644 --- a/.github/workflows/durabletask-azuremanaged.yml +++ b/.github/workflows/durabletask-azuremanaged.yml @@ -15,10 +15,10 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - - name: Set up Python 3.13 + - name: Set up Python 3.14 uses: actions/setup-python@v5 with: - python-version: 3.13 + python-version: 3.14 - name: Install dependencies working-directory: durabletask-azuremanaged run: | @@ -36,7 +36,7 @@ jobs: strategy: fail-fast: false matrix: - python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"] + python-version: ["3.10", "3.11", "3.12", "3.13", "3.14"] env: EMULATOR_VERSION: "latest" needs: lint @@ -100,7 +100,7 @@ jobs: - name: Set up Python uses: actions/setup-python@v5 with: - python-version: "3.13" # Adjust Python version as needed + python-version: "3.14" # Adjust Python version as needed - name: Install dependencies run: | diff --git a/.github/workflows/durabletask.yml b/.github/workflows/durabletask.yml index 4fb3fb0e..2f417d9b 100644 --- a/.github/workflows/durabletask.yml +++ b/.github/workflows/durabletask.yml @@ -15,10 +15,10 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - - name: Set up Python 3.13 + - name: Set up Python 3.14 uses: actions/setup-python@v5 with: - python-version: 3.13 + python-version: 3.14 - name: Install dependencies run: | python -m pip install --upgrade pip @@ -38,7 +38,7 @@ jobs: strategy: fail-fast: false matrix: - python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"] + python-version: ["3.10", "3.11", "3.12", "3.13", "3.14"] needs: lint-and-unit-tests runs-on: ubuntu-latest steps: @@ -85,7 +85,7 @@ jobs: - name: Set up Python uses: actions/setup-python@v5 with: - python-version: "3.13" # Adjust Python version as needed + python-version: "3.14" # Adjust Python version as needed - name: Install dependencies run: | diff --git a/durabletask-azuremanaged/pyproject.toml b/durabletask-azuremanaged/pyproject.toml index 2c45be2d..38d431e1 100644 --- a/durabletask-azuremanaged/pyproject.toml +++ b/durabletask-azuremanaged/pyproject.toml @@ -22,7 +22,7 @@ classifiers = [ "Programming Language :: Python :: 3", "License :: OSI Approved :: MIT License", ] -requires-python = ">=3.9" +requires-python = ">=3.10" license = {file = "LICENSE"} readme = "README.md" dependencies = [ diff --git a/pyproject.toml b/pyproject.toml index 30a6dbe8..39104df5 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -21,7 +21,7 @@ classifiers = [ "Programming Language :: Python :: 3", "License :: OSI Approved :: MIT License", ] -requires-python = ">=3.9" +requires-python = ">=3.10" license = {file = "LICENSE"} readme = "README.md" dependencies = [ diff --git a/tests/durabletask-azuremanaged/test_dts_orchestration_e2e.py b/tests/durabletask-azuremanaged/test_dts_orchestration_e2e.py index 1f478100..4a963fc7 100644 --- a/tests/durabletask-azuremanaged/test_dts_orchestration_e2e.py +++ b/tests/durabletask-azuremanaged/test_dts_orchestration_e2e.py @@ -295,7 +295,7 @@ def orchestrator(ctx: task.OrchestrationContext, _): # try: # state = task_hub_client.wait_for_orchestration_completion(id, timeout=3) # assert False, "Orchestration should not have completed" -# except TimeoutError: +# except (TimeoutError, _InactiveRpcError): # pass # # Resume the orchestration and wait for it to complete diff --git a/tests/durabletask/test_orchestration_e2e.py b/tests/durabletask/test_orchestration_e2e.py index 6dbc8e19..3db608dc 100644 --- a/tests/durabletask/test_orchestration_e2e.py +++ b/tests/durabletask/test_orchestration_e2e.py @@ -10,6 +10,8 @@ from durabletask import client, task, worker +from grpc._channel import _InactiveRpcError + # NOTE: These tests assume a sidecar process is running. Example command: # go install github.com/microsoft/durabletask-go@main # durabletask-go --port 4001 @@ -272,7 +274,7 @@ def orchestrator(ctx: task.OrchestrationContext, _): try: state = task_hub_client.wait_for_orchestration_completion(id, timeout=3) assert False, "Orchestration should not have completed" - except TimeoutError: + except (TimeoutError, _InactiveRpcError): pass # Resume the orchestration and wait for it to complete