-
Notifications
You must be signed in to change notification settings - Fork 61
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8c1c207
commit 6b2ba7f
Showing
8 changed files
with
125 additions
and
82 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: Labelbox Python SDK Develop | ||
name: Labelbox Python SDK Staging (Develop) | ||
|
||
on: | ||
push: | ||
|
@@ -8,7 +8,6 @@ on: | |
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
|
@@ -28,51 +27,14 @@ jobs: | |
- python-version: 3.12 | ||
api-key: STAGING_LABELBOX_API_KEY_5 | ||
da-test-key: DA_GCP_LABELBOX_API_KEY | ||
steps: | ||
- name: Cancel previous workflow | ||
uses: styfle/[email protected] | ||
with: | ||
access_token: ${{ github.token }} | ||
- uses: actions/checkout@v4 | ||
with: | ||
token: ${{ secrets.ACTIONS_ACCESS_TOKEN }} | ||
ref: ${{ github.head_ref }} | ||
- name: Install the latest version of rye | ||
uses: eifinger/setup-rye@v2 | ||
with: | ||
version: '0.29.0' | ||
enable-cache: true | ||
- name: Rye Setup | ||
run: | | ||
rye config --set-bool behavior.use-uv=true | ||
- name: Python setup | ||
run: rye pin ${{ matrix.python-version }} | ||
- name: Environment setup | ||
working-directory: libs/labelbox | ||
run: | | ||
rye sync -f --update-all | ||
- name: Linting | ||
working-directory: libs/labelbox | ||
run: rye run lint | ||
- name: Integration Testing | ||
env: | ||
PYTEST_XDIST_AUTO_NUM_WORKERS: 32 | ||
LABELBOX_TEST_API_KEY: ${{ secrets[matrix.api-key] }} | ||
DA_GCP_LABELBOX_API_KEY: ${{ secrets[matrix.da-test-key] }} | ||
LABELBOX_TEST_ENV: 'staging' | ||
working-directory: libs/labelbox | ||
run: rye run integration | ||
- name: Unit && Data Testing | ||
env: | ||
PYTEST_XDIST_AUTO_NUM_WORKERS: 32 | ||
LABELBOX_TEST_API_KEY: ${{ secrets[matrix.api-key] }} | ||
DA_GCP_LABELBOX_API_KEY: ${{ secrets[matrix.da-test-key] }} | ||
LABELBOX_TEST_ENV: 'staging' | ||
working-directory: libs/labelbox | ||
run: | | ||
rye sync -f --features labelbox/data | ||
rye run unit | ||
rye run data | ||
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 | ||
test-pypi: | ||
runs-on: ubuntu-latest | ||
if: github.event == 'push' | ||
|
@@ -91,7 +53,7 @@ jobs: | |
- name: Install the latest version of rye | ||
uses: eifinger/setup-rye@v2 | ||
with: | ||
version: '0.29.0' | ||
version: '0.32.0' | ||
enable-cache: true | ||
- name: Rye Setup | ||
run: | | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
name: Labelbox Python SDK PRod (Develop) | ||
|
||
on: | ||
workflow_dispatch: | ||
|
||
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
name: Labelbox Python SDK Shared | ||
|
||
on: | ||
workflow_call: | ||
inputs: | ||
python-version: | ||
required: true | ||
type: string | ||
api-key: | ||
required: true | ||
type: string | ||
da-test-key: | ||
required: true | ||
type: string | ||
test-env: | ||
required: true | ||
type: string | ||
fixture-profile: | ||
required: true | ||
type: boolean | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Cancel previous workflow | ||
uses: styfle/[email protected] | ||
with: | ||
access_token: ${{ github.token }} | ||
- uses: actions/checkout@v4 | ||
with: | ||
token: ${{ secrets.ACTIONS_ACCESS_TOKEN }} | ||
ref: ${{ github.head_ref }} | ||
- name: Install the latest version of rye | ||
uses: eifinger/setup-rye@v2 | ||
with: | ||
version: '0.32.0' | ||
enable-cache: true | ||
- name: Rye Setup | ||
run: | | ||
rye config --set-bool behavior.use-uv=true | ||
- name: Python setup | ||
run: rye pin ${{ inputs.python-version }} | ||
- name: Environment setup | ||
working-directory: libs/labelbox | ||
run: | | ||
rye sync -f --update-all | ||
- name: Linting | ||
working-directory: libs/labelbox | ||
run: rye run lint | ||
- name: Integration Testing | ||
env: | ||
PYTEST_XDIST_AUTO_NUM_WORKERS: 32 | ||
LABELBOX_TEST_API_KEY: ${{ secrets[inputs.api-key] }} | ||
DA_GCP_LABELBOX_API_KEY: ${{ secrets[inputs.da-test-key] }} | ||
LABELBOX_TEST_ENVIRON: ${{ inputs.test-env }} | ||
working-directory: libs/labelbox | ||
run: rye run integration | ||
- name: Unit && Data Testing | ||
env: | ||
PYTEST_XDIST_AUTO_NUM_WORKERS: 32 | ||
LABELBOX_TEST_API_KEY: ${{ secrets[inputs.api-key] }} | ||
DA_GCP_LABELBOX_API_KEY: ${{ secrets[inputs.da-test-key] }} | ||
LABELBOX_TEST_ENVIRON: ${{ inputs.test-env }} | ||
working-directory: libs/labelbox | ||
run: | | ||
rye sync -f --features labelbox/data | ||
rye run unit | ||
rye run data |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -144,4 +144,7 @@ docs/source/_templates | |
|
||
|
||
# pytest | ||
.testmondata* | ||
.testmondata* | ||
|
||
# rye | ||
.env |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters