Skip to content

Commit f29c82c

Browse files
authored
chore: Introduce matrix build. (#88)
* chore: Introduce matrix build. * Update qa.yml
1 parent 897fa7f commit f29c82c

File tree

4 files changed

+18
-10
lines changed

4 files changed

+18
-10
lines changed

.github/workflows/qa.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,17 @@ jobs:
88
runs-on: ubuntu-latest
99
timeout-minutes: 15
1010

11+
strategy:
12+
matrix:
13+
version: [ '3.11', '3.12', '3.13' ]
14+
1115
steps:
1216
- name: Clone repository
1317
uses: actions/checkout@v4
1418
- name: Use Python
1519
uses: actions/setup-python@v5
1620
with:
17-
python-version: '3.13'
21+
python-version: ${{ matrix.version }}
1822
- name: Install dependencies
1923
run: |
2024
pip install poetry

eventsourcingdb/client.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,8 @@ async def run_eventql_query(self, query: str) -> AsyncGenerator[Any]:
194194
message = parse_raw_message(raw_message)
195195

196196
if is_stream_error(message):
197-
raise ServerError(f'{message['payload']['error']}.')
197+
error_message = message.get('payload', {}).get('error', 'Unknown error')
198+
raise ServerError(f"{error_message}.")
198199
# pylint: disable=R2004
199200
if message.get('type') == 'row':
200201
payload = message['payload']
@@ -203,7 +204,7 @@ async def run_eventql_query(self, query: str) -> AsyncGenerator[Any]:
203204
continue
204205

205206
raise ServerError(
206-
f'Failed to execute EventQL query, an unexpected stream item was received: '
207+
'Failed to execute EventQL query, an unexpected stream item was received: '
207208
f'{message}.'
208209
)
209210

poetry.lock

Lines changed: 8 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
requires = ["poetry-core"]
33
build-backend = "poetry.core.masonry.api"
44

5-
[project]
5+
[project]
66
name = "eventsourcingdb"
77
version = "1.1.0"
88
description = "The official Python client SDK for EventSourcingDB."
@@ -14,7 +14,7 @@ license = "MIT"
1414
packages = [{include = "eventsourcingdb"}]
1515

1616
[tool.poetry.dependencies]
17-
python = "^3.13"
17+
python = "^3.11"
1818
aiohttp = "3.11.18"
1919
testcontainers = "4.10.0"
2020

0 commit comments

Comments
 (0)