Skip to content

Commit 077a28b

Browse files
authored
Add 3.10 to gihub PR tests (#1233)
2 parents 6a14896 + 57da848 commit 077a28b

File tree

4 files changed

+14
-4
lines changed

4 files changed

+14
-4
lines changed

.github/workflows/python-package.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,10 @@ jobs:
2626
prod-key: PROD_LABELBOX_API_KEY_3
2727
staging-key: STAGING_LABELBOX_API_KEY_3
2828
da-test-key: DA_GCP_LABELBOX_API_KEY
29+
- python-version: '3.10'
30+
prod-key: PROD_LABELBOX_API_KEY_4
31+
staging-key: STAGING_LABELBOX_API_KEY_4
32+
da-test-key: DA_GCP_LABELBOX_API_KEY
2933

3034
steps:
3135
- name: Cancel previous workflow

tests/integration/annotation_import/test_ndjson_validation.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
from labelbox.schema.media_type import MediaType
12
import pytest
23

34
from labelbox import parser
@@ -25,8 +26,11 @@ def get_data_row_id(indx=0):
2526

2627
@pytest.fixture(scope="module", autouse=True)
2728
def configured_project_with_ontology(client, ontology, rand_gen):
28-
project = client.create_project(name=rand_gen(str),
29-
queue_mode=QueueMode.Batch)
29+
project = client.create_project(
30+
name=rand_gen(str),
31+
queue_mode=QueueMode.Batch,
32+
media_type=MediaType.Image,
33+
)
3034
editor = list(
3135
client.get_labeling_frontends(
3236
where=LabelingFrontend.name == "editor"))[0]

tests/integration/test_data_rows.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
import uuid
44
from datetime import datetime
55
import json
6+
from labelbox.schema.media_type import MediaType
67

78
import pytest
89
import requests
@@ -959,7 +960,8 @@ def test_data_row_bulk_creation_sync_with_same_global_keys(
959960
def test_create_conversational_text(dataset, conversational_content):
960961
examples = [
961962
{
962-
**conversational_content, 'media_type': 'CONVERSATIONAL'
963+
**conversational_content, 'media_type':
964+
MediaType.Conversational.value
963965
},
964966
conversational_content,
965967
{

tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# content of: tox.ini , put in same dir as setup.py
22
[tox]
3-
envlist = py37, py38, py39
3+
envlist = py37, py38, py39, py310
44

55
[testenv]
66
# install pytest in the virtualenv where commands will be executed

0 commit comments

Comments
 (0)