Skip to content

Commit 5b453ed

Browse files
Drop 3.9 and add 3.14 Python version (#73)
* Drop 3.9 and add 3.14 Python version * Fix typo * Fix flaky test * Actual flaky test fix --------- Co-authored-by: Bernd Verst <[email protected]>
1 parent 0e95aa8 commit 5b453ed

File tree

6 files changed

+14
-12
lines changed

6 files changed

+14
-12
lines changed

.github/workflows/durabletask-azuremanaged.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@ jobs:
1515
runs-on: ubuntu-latest
1616
steps:
1717
- uses: actions/checkout@v4
18-
- name: Set up Python 3.13
18+
- name: Set up Python 3.14
1919
uses: actions/setup-python@v5
2020
with:
21-
python-version: 3.13
21+
python-version: 3.14
2222
- name: Install dependencies
2323
working-directory: durabletask-azuremanaged
2424
run: |
@@ -36,7 +36,7 @@ jobs:
3636
strategy:
3737
fail-fast: false
3838
matrix:
39-
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
39+
python-version: ["3.10", "3.11", "3.12", "3.13", "3.14"]
4040
env:
4141
EMULATOR_VERSION: "latest"
4242
needs: lint
@@ -100,7 +100,7 @@ jobs:
100100
- name: Set up Python
101101
uses: actions/setup-python@v5
102102
with:
103-
python-version: "3.13" # Adjust Python version as needed
103+
python-version: "3.14" # Adjust Python version as needed
104104

105105
- name: Install dependencies
106106
run: |

.github/workflows/durabletask.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@ jobs:
1515
runs-on: ubuntu-latest
1616
steps:
1717
- uses: actions/checkout@v4
18-
- name: Set up Python 3.13
18+
- name: Set up Python 3.14
1919
uses: actions/setup-python@v5
2020
with:
21-
python-version: 3.13
21+
python-version: 3.14
2222
- name: Install dependencies
2323
run: |
2424
python -m pip install --upgrade pip
@@ -38,7 +38,7 @@ jobs:
3838
strategy:
3939
fail-fast: false
4040
matrix:
41-
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
41+
python-version: ["3.10", "3.11", "3.12", "3.13", "3.14"]
4242
needs: lint-and-unit-tests
4343
runs-on: ubuntu-latest
4444
steps:
@@ -85,7 +85,7 @@ jobs:
8585
- name: Set up Python
8686
uses: actions/setup-python@v5
8787
with:
88-
python-version: "3.13" # Adjust Python version as needed
88+
python-version: "3.14" # Adjust Python version as needed
8989

9090
- name: Install dependencies
9191
run: |

durabletask-azuremanaged/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ classifiers = [
2222
"Programming Language :: Python :: 3",
2323
"License :: OSI Approved :: MIT License",
2424
]
25-
requires-python = ">=3.9"
25+
requires-python = ">=3.10"
2626
license = {file = "LICENSE"}
2727
readme = "README.md"
2828
dependencies = [

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ classifiers = [
2121
"Programming Language :: Python :: 3",
2222
"License :: OSI Approved :: MIT License",
2323
]
24-
requires-python = ">=3.9"
24+
requires-python = ">=3.10"
2525
license = {file = "LICENSE"}
2626
readme = "README.md"
2727
dependencies = [

tests/durabletask-azuremanaged/test_dts_orchestration_e2e.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ def orchestrator(ctx: task.OrchestrationContext, _):
295295
# try:
296296
# state = task_hub_client.wait_for_orchestration_completion(id, timeout=3)
297297
# assert False, "Orchestration should not have completed"
298-
# except TimeoutError:
298+
# except (TimeoutError, _InactiveRpcError):
299299
# pass
300300

301301
# # Resume the orchestration and wait for it to complete

tests/durabletask/test_orchestration_e2e.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010

1111
from durabletask import client, task, worker
1212

13+
from grpc._channel import _InactiveRpcError
14+
1315
# NOTE: These tests assume a sidecar process is running. Example command:
1416
# go install github.com/microsoft/durabletask-go@main
1517
# durabletask-go --port 4001
@@ -272,7 +274,7 @@ def orchestrator(ctx: task.OrchestrationContext, _):
272274
try:
273275
state = task_hub_client.wait_for_orchestration_completion(id, timeout=3)
274276
assert False, "Orchestration should not have completed"
275-
except TimeoutError:
277+
except (TimeoutError, _InactiveRpcError):
276278
pass
277279

278280
# Resume the orchestration and wait for it to complete

0 commit comments

Comments
 (0)