Skip to content

Commit e56f958

Browse files
authored
Add newer py versions support (#135)
* Add newer py versions support * Remove 3.15 as it is not released yet * Mark internally async tests as async
1 parent 1de5933 commit e56f958

File tree

2 files changed

+11
-5
lines changed

2 files changed

+11
-5
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414

1515
strategy:
1616
matrix:
17-
python-version: ["3.10", "3.11", "3.12", "3.13"]
17+
python-version: ["3.10", "3.11", "3.12", "3.13", "3.14"]
1818

1919
steps:
2020
- name: Checkout code

tests/test_config_loading.py

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,8 @@ def test_load_config_from_other_place(tmp_path, monkeypatch) -> None:
228228
assert config.parent_id == "project-e00some-id"
229229

230230

231-
def test_load_config_federated_subject_file(tmp_path, monkeypatch) -> None:
231+
@pytest.mark.asyncio
232+
async def test_load_config_federated_subject_file(tmp_path, monkeypatch) -> None:
232233
from nebius.aio.cli_config import Config
233234
from nebius.aio.token.federated_credentials import FederatedCredentialsBearer
234235

@@ -264,7 +265,10 @@ def test_load_config_federated_subject_file(tmp_path, monkeypatch) -> None:
264265
assert isinstance(cred, FederatedCredentialsBearer)
265266

266267

267-
def test_load_config_service_account_credentials_file(tmp_path, monkeypatch) -> None:
268+
@pytest.mark.asyncio
269+
async def test_load_config_service_account_credentials_file(
270+
tmp_path, monkeypatch
271+
) -> None:
268272
# create a service account credentials JSON with a PEM private key
269273
from cryptography.hazmat.primitives import serialization
270274
from cryptography.hazmat.primitives.asymmetric import rsa
@@ -326,7 +330,8 @@ def test_load_config_service_account_credentials_file(tmp_path, monkeypatch) ->
326330
assert isinstance(cred, ServiceAccountBearer)
327331

328332

329-
def test_load_config_private_key_file(tmp_path, monkeypatch) -> None:
333+
@pytest.mark.asyncio
334+
async def test_load_config_private_key_file(tmp_path, monkeypatch) -> None:
330335
# Test private-key-file-path
331336
from cryptography.hazmat.primitives import serialization
332337
from cryptography.hazmat.primitives.asymmetric import rsa
@@ -375,7 +380,8 @@ def test_load_config_private_key_file(tmp_path, monkeypatch) -> None:
375380
assert isinstance(cred, ServiceAccountBearer)
376381

377382

378-
def test_load_config_private_key_inline(tmp_path, monkeypatch) -> None:
383+
@pytest.mark.asyncio
384+
async def test_load_config_private_key_inline(tmp_path, monkeypatch) -> None:
379385
# Test inline private-key branch
380386
from cryptography.hazmat.primitives import serialization
381387
from cryptography.hazmat.primitives.asymmetric import rsa

0 commit comments

Comments
 (0)