File tree Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -48,12 +48,13 @@ jobs:
48
48
python-version : ${{ inputs.python-version }}
49
49
- name : Integration Testing
50
50
env :
51
- PYTEST_XDIST_AUTO_NUM_WORKERS : 20
52
51
LABELBOX_TEST_API_KEY : ${{ secrets[inputs.api-key] }}
53
52
DA_GCP_LABELBOX_API_KEY : ${{ secrets[inputs.da-test-key] }}
54
53
LABELBOX_TEST_ENVIRON : ${{ inputs.test-env }}
55
54
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
57
58
unit-data :
58
59
runs-on : ubuntu-latest
59
60
steps :
@@ -66,12 +67,12 @@ jobs:
66
67
python-version : ${{ inputs.python-version }}
67
68
- name : Unit && Data Testing
68
69
env :
69
- PYTEST_XDIST_AUTO_NUM_WORKERS : 20
70
70
LABELBOX_TEST_API_KEY : ${{ secrets[inputs.api-key] }}
71
71
DA_GCP_LABELBOX_API_KEY : ${{ secrets[inputs.da-test-key] }}
72
72
LABELBOX_TEST_ENVIRON : ${{ inputs.test-env }}
73
73
working-directory : libs/labelbox
74
74
run : |
75
75
rye sync -f --features labelbox/data
76
76
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
Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ members = ["libs/*", "examples"]
34
34
35
35
[tool .pytest .ini_options ]
36
36
# 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"
38
38
markers = """
39
39
slow: marks tests as slow (deselect with '-m "not slow"')
40
40
"""
You can’t perform that action at this time.
0 commit comments