Skip to content

Commit 599c471

Browse files
author
Adrian Chang
committed
integration tests
1 parent f278d2b commit 599c471

File tree

1 file changed

+25
-3
lines changed

1 file changed

+25
-3
lines changed

.github/workflows/python-package-shared.yml

Lines changed: 25 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,14 @@ jobs:
5353
LABELBOX_TEST_ENVIRON: ${{ inputs.test-env }}
5454
working-directory: libs/labelbox
5555
run: |
56-
rye run pytest --ignore=tests/integration/test_data_rows.py --timeout=60 --rerun-except Timeout tests/integration
56+
rye run pytest --ignore=tests/integration/test_data_rows.py --timeout=120 --rerun-except Timeout tests/integration
57+
- name: Integration Testing Slow
58+
env:
59+
LABELBOX_TEST_API_KEY: ${{ secrets[inputs.api-key] }}
60+
DA_GCP_LABELBOX_API_KEY: ${{ secrets[inputs.da-test-key] }}
61+
LABELBOX_TEST_ENVIRON: ${{ inputs.test-env }}
62+
working-directory: libs/labelbox
63+
run: |
5764
rye run pytest -p no:xdist --timeout=300 --rerun-except Timeout tests/integration/test_data_rows.py
5865
unit-data:
5966
runs-on: ubuntu-latest
@@ -65,7 +72,7 @@ jobs:
6572
with:
6673
rye-version: ${{ vars.RYE_VERSION }}
6774
python-version: ${{ inputs.python-version }}
68-
- name: Unit && Data Testing
75+
- name: Unit
6976
env:
7077
LABELBOX_TEST_API_KEY: ${{ secrets[inputs.api-key] }}
7178
DA_GCP_LABELBOX_API_KEY: ${{ secrets[inputs.da-test-key] }}
@@ -74,5 +81,20 @@ jobs:
7481
run: |
7582
rye sync -f --features labelbox/data
7683
rye run unit
77-
rye run pytest --ignore=tests/data/annotation_import --timeout=60 --rerun-except Timeout tests/data
84+
- name: Data
85+
env:
86+
LABELBOX_TEST_API_KEY: ${{ secrets[inputs.api-key] }}
87+
DA_GCP_LABELBOX_API_KEY: ${{ secrets[inputs.da-test-key] }}
88+
LABELBOX_TEST_ENVIRON: ${{ inputs.test-env }}
89+
working-directory: libs/labelbox
90+
run: |
91+
rye run pytest --ignore=tests/data/annotation_import --timeout=120 --rerun-except Timeout tests/data
92+
rye run pytest -p no:xdist --timeout=300 --rerun-except Timeout tests/data/annotation_import
93+
- name: Data Slow
94+
env:
95+
LABELBOX_TEST_API_KEY: ${{ secrets[inputs.api-key] }}
96+
DA_GCP_LABELBOX_API_KEY: ${{ secrets[inputs.da-test-key] }}
97+
LABELBOX_TEST_ENVIRON: ${{ inputs.test-env }}
98+
working-directory: libs/labelbox
99+
run: |
78100
rye run pytest -p no:xdist --timeout=300 --rerun-except Timeout tests/data/annotation_import

0 commit comments

Comments
 (0)