Skip to content

Commit c9833dc

Browse files
[PLT-0] split up workflows (#1517)
Co-authored-by: sfendell-labelbox <150080555+sfendell-labelbox@users.noreply.github.com>
1 parent 9afbfa3 commit c9833dc

File tree

4 files changed

+74
-72
lines changed

4 files changed

+74
-72
lines changed
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Labelbox Python SDK Develop
2+
3+
on:
4+
push:
5+
branches: [develop]
6+
pull_request:
7+
branches: [develop]
8+
9+
jobs:
10+
build:
11+
strategy:
12+
fail-fast: false
13+
matrix:
14+
include:
15+
- python-version: 3.8
16+
api-key: STAGING_LABELBOX_API_KEY_2
17+
da-test-key: DA_GCP_LABELBOX_API_KEY
18+
- python-version: 3.9
19+
api-key: STAGING_LABELBOX_API_KEY_3
20+
da-test-key: DA_GCP_LABELBOX_API_KEY
21+
- python-version: "3.10"
22+
api-key: STAGING_LABELBOX_API_KEY_4
23+
da-test-key: DA_GCP_LABELBOX_API_KEY
24+
- python-version: 3.11
25+
api-key: STAGING_LABELBOX_API_KEY
26+
da-test-key: DA_GCP_LABELBOX_API_KEY
27+
- python-version: 3.12
28+
api-key: STAGING_LABELBOX_API_KEY_5
29+
da-test-key: DA_GCP_LABELBOX_API_KEY
30+
uses: ./.github/workflows/python-package-shared.yml
31+
with:
32+
python-version: ${{ matrix.python-version }}
33+
api-key: ${{ matrix.api-key }}
34+
da-test-key: ${{ matrix.da-test-key }}
35+
fixture-profile: true
36+
test-env: 'staging'
37+
secrets: inherit
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Labelbox Python SDK Main
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
8+
9+
jobs:
10+
build:
11+
strategy:
12+
fail-fast: false
13+
matrix:
14+
include:
15+
- python-version: 3.8
16+
api-key: PROD_LABELBOX_API_KEY_2
17+
da-test-key: DA_GCP_LABELBOX_API_KEY
18+
- python-version: 3.9
19+
api-key: PROD_LABELBOX_API_KEY_3
20+
da-test-key: DA_GCP_LABELBOX_API_KEY
21+
- python-version: "3.10"
22+
api-key: PROD_LABELBOX_API_KEY_4
23+
da-test-key: DA_GCP_LABELBOX_API_KEY
24+
- python-version: 3.11
25+
api-key: LABELBOX_API_KEY
26+
da-test-key: DA_GCP_LABELBOX_API_KEY
27+
- python-version: 3.12
28+
api-key: PROD_LABELBOX_API_KEY_5
29+
da-test-key: DA_GCP_LABELBOX_API_KEY
30+
uses: ./.github/workflows/python-package-shared.yml
31+
with:
32+
python-version: ${{ matrix.python-version }}
33+
api-key: ${{ matrix.api-key }}
34+
da-test-key: ${{ matrix.da-test-key }}
35+
fixture-profile: false
36+
test-env: 'prod'
37+
secrets: inherit

.github/workflows/python-package.yml

Lines changed: 0 additions & 66 deletions
This file was deleted.

tests/conftest.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -122,17 +122,13 @@ def rest_url(environ: str) -> str:
122122

123123

124124
def testing_api_key(environ: str) -> str:
125-
print('testing')
126-
print(str)
127-
print(os.environ)
128125
for var in [
129126
"LABELBOX_TEST_API_KEY_PROD", "LABELBOX_TEST_API_KEY_STAGING",
130127
"LABELBOX_TEST_API_KEY_CUSTOM", "LABELBOX_TEST_API_KEY_LOCAL",
131128
"LABELBOX_TEST_API_KEY"
132129
]:
133130
value = os.environ.get(var)
134131
if value is not None:
135-
print(value)
136132
return value
137133
raise Exception("Cannot find API to use for tests")
138134

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

0 commit comments

Comments
 (0)