Skip to content

Commit eb9b68e

Browse files
authored
ci: support 3.13 (#462)
1 parent 4c3f6c7 commit eb9b68e

File tree

3 files changed

+8
-7
lines changed

3 files changed

+8
-7
lines changed

.github/workflows/check-test-release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
fail-fast: false
2727
matrix:
2828
os: [ubuntu-latest, macos-latest, windows-latest]
29-
python: ["3.9", "3.10", "3.11", "3.12"]
29+
python: ["3.9", "3.10", "3.11", "3.12", "3.13"]
3030

3131
steps:
3232
- uses: actions/checkout@v4

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ classifiers = [
1616
"Programming Language :: Python :: 3.10",
1717
"Programming Language :: Python :: 3.11",
1818
"Programming Language :: Python :: 3.12",
19+
"Programming Language :: Python :: 3.13",
1920
]
2021
requires-python = ">=3.9"
2122
dynamic = ["version"]

tests/test_api.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"""TODO: add more tests for API"""
33

44
import os
5-
from contextlib import contextmanager
5+
from contextlib import contextmanager, nullcontext
66
from time import sleep
77
from typing import Optional
88
from unittest.mock import ANY, call, patch
@@ -509,7 +509,7 @@ def test_if_deprecate_with_delete_and_auto_push_then_invoke_git_push_tag(
509509
def test_if_register_with_remote_repo_then_invoke_git_push_tag(tmp_dir: TmpDir):
510510
with patch("gto.registry.git_push_tag") as mocked_git_push_tag:
511511
with patch("gto.git_utils.TemporaryDirectory") as MockedTemporaryDirectory:
512-
MockedTemporaryDirectory.return_value = tmp_dir
512+
MockedTemporaryDirectory.return_value = nullcontext(tmp_dir)
513513
gto.api.register(
514514
repo=tests.resources.SAMPLE_REMOTE_REPO_URL,
515515
name="model",
@@ -525,7 +525,7 @@ def test_if_register_with_remote_repo_then_invoke_git_push_tag(tmp_dir: TmpDir):
525525
def test_if_assign_with_remote_repo_then_invoke_git_push_tag(tmp_dir: TmpDir):
526526
with patch("gto.registry.git_push_tag") as mocked_git_push_tag:
527527
with patch("gto.git_utils.TemporaryDirectory") as MockedTemporaryDirectory:
528-
MockedTemporaryDirectory.return_value = tmp_dir
528+
MockedTemporaryDirectory.return_value = nullcontext(tmp_dir)
529529
gto.api.assign(
530530
repo=tests.resources.SAMPLE_REMOTE_REPO_URL,
531531
name="model",
@@ -550,7 +550,7 @@ def test_if_assign_with_remote_repo_then_invoke_git_push_tag(tmp_dir: TmpDir):
550550
def test_if_deprecate_with_remote_repo_then_invoke_git_push_tag(tmp_dir: TmpDir):
551551
with patch("gto.registry.git_push_tag") as mocked_git_push_tag:
552552
with patch("gto.git_utils.TemporaryDirectory") as MockedTemporaryDirectory:
553-
MockedTemporaryDirectory.return_value = tmp_dir
553+
MockedTemporaryDirectory.return_value = nullcontext(tmp_dir)
554554
gto.api.deprecate(
555555
repo=tests.resources.SAMPLE_REMOTE_REPO_URL,
556556
name="churn",
@@ -565,7 +565,7 @@ def test_if_deprecate_with_remote_repo_then_invoke_git_push_tag(tmp_dir: TmpDir)
565565
def test_if_deregister_with_remote_repo_then_invoke_git_push_tag(tmp_dir: TmpDir):
566566
with patch("gto.registry.git_push_tag") as mocked_git_push_tag:
567567
with patch("gto.git_utils.TemporaryDirectory") as MockedTemporaryDirectory:
568-
MockedTemporaryDirectory.return_value = tmp_dir
568+
MockedTemporaryDirectory.return_value = nullcontext(tmp_dir)
569569
gto.api.deregister(
570570
repo=tests.resources.SAMPLE_REMOTE_REPO_URL,
571571
name="churn",
@@ -581,7 +581,7 @@ def test_if_deregister_with_remote_repo_then_invoke_git_push_tag(tmp_dir: TmpDir
581581
def test_if_unassign_with_remote_repo_then_invoke_git_push_tag(tmp_dir: TmpDir):
582582
with patch("gto.registry.git_push_tag") as mocked_git_push_tag:
583583
with patch("gto.git_utils.TemporaryDirectory") as MockedTemporaryDirectory:
584-
MockedTemporaryDirectory.return_value = tmp_dir
584+
MockedTemporaryDirectory.return_value = nullcontext(tmp_dir)
585585
gto.api.unassign(
586586
repo=tests.resources.SAMPLE_REMOTE_REPO_URL,
587587
name="churn",

0 commit comments

Comments
 (0)