Skip to content

Commit 0b01032

Browse files
author
Adrian Chang
committed
cli tuning
1 parent 1a8a5a0 commit 0b01032

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

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

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,12 +48,13 @@ jobs:
4848
python-version: ${{ inputs.python-version }}
4949
- name: Integration Testing
5050
env:
51-
PYTEST_XDIST_AUTO_NUM_WORKERS: 20
5251
LABELBOX_TEST_API_KEY: ${{ secrets[inputs.api-key] }}
5352
DA_GCP_LABELBOX_API_KEY: ${{ secrets[inputs.da-test-key] }}
5453
LABELBOX_TEST_ENVIRON: ${{ inputs.test-env }}
5554
working-directory: libs/labelbox
56-
run: rye run integration
55+
run: |
56+
rye run --ignore=tests/integration/test_data_rows.py --timeout=60 --rerun-except Timeout tests/integration
57+
rye run -p no:xdist --timeout=300 --rerun-except Timeout tests/integration/test_data_rows.py
5758
unit-data:
5859
runs-on: ubuntu-latest
5960
steps:
@@ -66,12 +67,12 @@ jobs:
6667
python-version: ${{ inputs.python-version }}
6768
- name: Unit && Data Testing
6869
env:
69-
PYTEST_XDIST_AUTO_NUM_WORKERS: 20
7070
LABELBOX_TEST_API_KEY: ${{ secrets[inputs.api-key] }}
7171
DA_GCP_LABELBOX_API_KEY: ${{ secrets[inputs.da-test-key] }}
7272
LABELBOX_TEST_ENVIRON: ${{ inputs.test-env }}
7373
working-directory: libs/labelbox
7474
run: |
7575
rye sync -f --features labelbox/data
7676
rye run unit
77-
rye run data
77+
rye run pytest --ignore=tests/data/annotation_import --timeout=60 --rerun-except Timeout tests/data
78+
rye run pytest -p no:xdist --timeout=300 --rerun-except Timeout tests/data/annotation_import

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ members = ["libs/*", "examples"]
3434

3535
[tool.pytest.ini_options]
3636
# https://github.com/pytest-dev/pytest-rerunfailures/issues/99
37-
addopts = "-rP -vvv --reruns 1 --reruns-delay 5 --durations=20 -n auto --maxprocesses=10 --cov=labelbox --import-mode=importlib --timeout=60 --rerun-except Timeout"
37+
addopts = "-rP -vvv --reruns 1 --reruns-delay 5 --durations=20 -n auto --maxprocesses=10 --cov=labelbox --import-mode=importlib"
3838
markers = """
3939
slow: marks tests as slow (deselect with '-m "not slow"')
4040
"""

0 commit comments

Comments
 (0)