Skip to content

Commit 6c0a994

Browse files
committed
Add Python 3.13 to CI test matrix
Signed-off-by: Mathias L. Baumann <[email protected]>
1 parent ce8ece8 commit 6c0a994

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

.github/workflows/ci.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535
- ubuntu-24.04
3636
python:
3737
- "3.11"
38-
- "3.12"
38+
- "3.13"
3939
nox-session:
4040
# To speed things up a bit we use the special ci_checks_max session
4141
# that uses the same venv to run multiple linting sessions
@@ -112,7 +112,7 @@ jobs:
112112
- ubuntu-24.04
113113
python:
114114
- "3.11"
115-
- "3.12"
115+
- "3.13"
116116
runs-on: ${{ matrix.os }}${{ matrix.arch != 'amd64' && format('-{0}', matrix.arch) || '' }}
117117

118118
steps:

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ state changes.
2020

2121
The following platforms are officially supported (tested):
2222

23-
- **Python:** 3.11, 3.12
23+
- **Python:** 3.11, 3.13
2424
- **Operating System:** Ubuntu Linux 24.04
2525
- **Architectures:** amd64, arm64
2626

@@ -64,12 +64,14 @@ from frequenz.dispatch import Dispatcher
6464
async def main() -> None:
6565
url = os.getenv("DISPATCH_API_URL", "grpc://localhost:50051")
6666
auth_key = os.getenv("DISPATCH_API_AUTH_KEY", "my-api-key")
67+
sign_secret = os.getenv("DISPATCH_API_SIGN_SECRET")
6768
microgrid_id = 1
6869

6970
async with Dispatcher(
7071
microgrid_id=microgrid_id,
7172
server_url=url,
7273
auth_key=auth_key,
74+
sign_secret=sign_secret,
7375
) as dispatcher:
7476
async for event in dispatcher.lifecycle_events:
7577
print(f"Received lifecycle event: {event}")
@@ -105,13 +107,15 @@ async def run() -> None:
105107
"DISPATCH_API_URL", "grpc://dispatch.api.example.com:50051"
106108
)
107109
auth_key = os.getenv("DISPATCH_API_AUTH_KEY", "my-api-key")
110+
sign_secret = os.getenv("DISPATCH_API_SIGN_SECRET")
108111

109112
microgrid_id = 1
110113

111114
async with Dispatcher(
112115
microgrid_id=microgrid_id,
113116
server_url=url,
114117
auth_key=auth_key,
118+
sign_secret=sign_secret,
115119
) as dispatcher:
116120
await dispatcher.start_managing(
117121
dispatch_type="EXAMPLE_TYPE",

0 commit comments

Comments
 (0)