Skip to content
Open
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
35 changes: 31 additions & 4 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,17 +39,44 @@ jobs:

build:
needs: lint
runs-on: ubuntu-latest
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
python_ver: ["3.10", "3.11", "3.12", "3.13", "3.14"]
include:
- os: ubuntu-latest
python_version: "3.10"
tox_env: py310
- os: ubuntu-latest
python_version: "3.11"
tox_env: py311
- os: ubuntu-latest
python_version: "3.12"
tox_env: py312
- os: ubuntu-latest
python_version: "3.13"
tox_env: py313
- os: ubuntu-latest
python_version: "3.14"
tox_env: py314
- os: windows-latest
python_version: "3.10"
tox_env: py310
- os: windows-latest
python_version: "3.13"
tox_env: py313
- os: macos-latest
python_version: "3.10"
tox_env: py310
- os: macos-latest
python_version: "3.13"
tox_env: py313
steps:
- uses: actions/checkout@v6
- name: Set up Python ${{ matrix.python_ver }}
- name: Set up Python ${{ matrix.python_version }}
uses: actions/setup-python@v6
with:
python-version: ${{ matrix.python_ver }}
python-version: ${{ matrix.python_version }}
- name: Install uv
uses: astral-sh/setup-uv@v5
- name: Install dependencies
Expand Down
2 changes: 1 addition & 1 deletion tests/clients/test_dapr_grpc_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -815,7 +815,7 @@ def test_wait_timeout(self):
dapr = DaprGrpcClient(f'localhost:{port}')
with self.assertRaises(Exception) as context:
dapr.wait(0.1)
self.assertTrue('Connection refused' in str(context.exception))
self.assertIsInstance(context.exception, (ConnectionRefusedError, TimeoutError))

def test_lock_acquire_success(self):
dapr = DaprGrpcClient(f'{self.scheme}localhost:{self.grpc_port}')
Expand Down
2 changes: 1 addition & 1 deletion tests/clients/test_dapr_grpc_client_async.py
Original file line number Diff line number Diff line change
Expand Up @@ -799,7 +799,7 @@ async def test_wait_timeout(self):
dapr = DaprGrpcClientAsync(f'{self.scheme}localhost:{port}')
with self.assertRaises(Exception) as context:
await dapr.wait(0.1)
self.assertTrue('Connection refused' in str(context.exception))
self.assertIsInstance(context.exception, (ConnectionRefusedError, TimeoutError))

async def test_lock_acquire_success(self):
dapr = DaprGrpcClientAsync(f'{self.scheme}localhost:{self.grpc_port}')
Expand Down