Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 37 additions & 0 deletions .github/workflows/python-package-develop.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Labelbox Python SDK Develop

on:
push:
branches: [develop]
pull_request:
branches: [develop]

jobs:
build:
strategy:
fail-fast: false
matrix:
include:
- python-version: 3.8
api-key: STAGING_LABELBOX_API_KEY_2
da-test-key: DA_GCP_LABELBOX_API_KEY
- python-version: 3.9
api-key: STAGING_LABELBOX_API_KEY_3
da-test-key: DA_GCP_LABELBOX_API_KEY
- python-version: "3.10"
api-key: STAGING_LABELBOX_API_KEY_4
da-test-key: DA_GCP_LABELBOX_API_KEY
- python-version: 3.11
api-key: STAGING_LABELBOX_API_KEY
da-test-key: DA_GCP_LABELBOX_API_KEY
- python-version: 3.12
api-key: STAGING_LABELBOX_API_KEY_5
da-test-key: DA_GCP_LABELBOX_API_KEY
uses: ./.github/workflows/python-package-shared.yml
with:
python-version: ${{ matrix.python-version }}
api-key: ${{ matrix.api-key }}
da-test-key: ${{ matrix.da-test-key }}
fixture-profile: true
test-env: 'staging'
secrets: inherit
37 changes: 37 additions & 0 deletions .github/workflows/python-package-main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Labelbox Python SDK Main

on:
push:
branches: [main]
pull_request:
branches: [main]

jobs:
build:
strategy:
fail-fast: false
matrix:
include:
- python-version: 3.8
api-key: PROD_LABELBOX_API_KEY_2
da-test-key: DA_GCP_LABELBOX_API_KEY
- python-version: 3.9
api-key: PROD_LABELBOX_API_KEY_3
da-test-key: DA_GCP_LABELBOX_API_KEY
- python-version: "3.10"
api-key: PROD_LABELBOX_API_KEY_4
da-test-key: DA_GCP_LABELBOX_API_KEY
- python-version: 3.11
api-key: LABELBOX_API_KEY
da-test-key: DA_GCP_LABELBOX_API_KEY
- python-version: 3.12
api-key: PROD_LABELBOX_API_KEY_5
da-test-key: DA_GCP_LABELBOX_API_KEY
uses: ./.github/workflows/python-package-shared.yml
with:
python-version: ${{ matrix.python-version }}
api-key: ${{ matrix.api-key }}
da-test-key: ${{ matrix.da-test-key }}
fixture-profile: false
test-env: 'prod'
secrets: inherit
66 changes: 0 additions & 66 deletions .github/workflows/python-package.yml

This file was deleted.

6 changes: 0 additions & 6 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,17 +122,13 @@ def rest_url(environ: str) -> str:


def testing_api_key(environ: str) -> str:
print('testing')
print(str)
print(os.environ)
for var in [
"LABELBOX_TEST_API_KEY_PROD", "LABELBOX_TEST_API_KEY_STAGING",
"LABELBOX_TEST_API_KEY_CUSTOM", "LABELBOX_TEST_API_KEY_LOCAL",
"LABELBOX_TEST_API_KEY"
]:
value = os.environ.get(var)
if value is not None:
print(value)
return value
raise Exception("Cannot find API to use for tests")

Expand Down Expand Up @@ -315,8 +311,6 @@ def environ() -> Environ:
Make sure to set LABELBOX_TEST_ENVIRON in .github/workflows/python-package.yaml
"""
try:
print('env')
print(os.environ['LABELBOX_TEST_ENVIRON'])
return Environ(os.environ['LABELBOX_TEST_ENVIRON'])
except KeyError:
raise Exception(f'Missing LABELBOX_TEST_ENVIRON in: {os.environ}')
Expand Down