File tree Expand file tree Collapse file tree 5 files changed +7
-6
lines changed Expand file tree Collapse file tree 5 files changed +7
-6
lines changed Original file line number Diff line number Diff line change 8484
8585 LABELBOX_TEST_API_KEY_STAGING : ${{ secrets[matrix.staging-key] }}
8686 run : |
87- tox -e py -- -svvx
87+ tox -e py -- -svv --reruns 5 --reruns-delay 10
Original file line number Diff line number Diff line change 11FROM python:3.7
22
3- RUN pip install pytest pytest-cases
3+ RUN pip install pytest pytest-cases pytest-rerunfailures
44RUN apt-get -y update
55RUN apt install -y libsm6 \
66 libxext6 \
Original file line number Diff line number Diff line change @@ -7,16 +7,16 @@ test-local: build
77 docker run -it -v ${PWD} :/usr/src -w /usr/src \
88 -e LABELBOX_TEST_ENVIRON=" local" \
99 -e LABELBOX_TEST_API_KEY_LOCAL=${LABELBOX_TEST_API_KEY_LOCAL} \
10- local/labelbox-python:test pytest $(PATH_TO_TEST ) -svvx
10+ local/labelbox-python:test pytest $(PATH_TO_TEST )
1111
1212test-staging : build
1313 docker run -it -v ${PWD} :/usr/src -w /usr/src \
1414 -e LABELBOX_TEST_ENVIRON=" staging" \
1515 -e LABELBOX_TEST_API_KEY_STAGING=${LABELBOX_TEST_API_KEY_STAGING} \
16- local/labelbox-python:test pytest $(PATH_TO_TEST ) -svvx
16+ local/labelbox-python:test pytest $(PATH_TO_TEST )
1717
1818test-prod : build
1919 docker run -it -v ${PWD} :/usr/src -w /usr/src \
2020 -e LABELBOX_TEST_ENVIRON=" prod" \
2121 -e LABELBOX_TEST_API_KEY_PROD=${LABELBOX_TEST_API_KEY_PROD} \
22- local/labelbox-python:test pytest $(PATH_TO_TEST ) -svvx
22+ local/labelbox-python:test pytest $(PATH_TO_TEST )
Original file line number Diff line number Diff line change 11[pytest]
2- addopts = -s -vv
2+ addopts = -s -vv --reruns 5 --reruns-delay 10
33markers =
44 slow: marks tests as slow (deselect with ' -m "not slow"' )
Original file line number Diff line number Diff line change 88 -rrequirements.txt
99 pytest < 7.0.0
1010 pytest-cases
11+ pytest-rerunfailures
1112passenv = LABELBOX_TEST_API_KEY_PROD LABELBOX_TEST_API_KEY_STAGING LABELBOX_TEST_ENVIRON
1213commands = pytest {posargs}
You can’t perform that action at this time.
0 commit comments