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 84
84
85
85
LABELBOX_TEST_API_KEY_STAGING : ${{ secrets[matrix.staging-key] }}
86
86
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 1
1
FROM python:3.7
2
2
3
- RUN pip install pytest pytest-cases
3
+ RUN pip install pytest pytest-cases pytest-rerunfailures
4
4
RUN apt-get -y update
5
5
RUN apt install -y libsm6 \
6
6
libxext6 \
Original file line number Diff line number Diff line change @@ -7,16 +7,16 @@ test-local: build
7
7
docker run -it -v ${PWD} :/usr/src -w /usr/src \
8
8
-e LABELBOX_TEST_ENVIRON=" local" \
9
9
-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 )
11
11
12
12
test-staging : build
13
13
docker run -it -v ${PWD} :/usr/src -w /usr/src \
14
14
-e LABELBOX_TEST_ENVIRON=" staging" \
15
15
-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 )
17
17
18
18
test-prod : build
19
19
docker run -it -v ${PWD} :/usr/src -w /usr/src \
20
20
-e LABELBOX_TEST_ENVIRON=" prod" \
21
21
-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 1
1
[pytest]
2
- addopts = -s -vv
2
+ addopts = -s -vv --reruns 5 --reruns-delay 10
3
3
markers =
4
4
slow: marks tests as slow (deselect with ' -m "not slow"' )
Original file line number Diff line number Diff line change 8
8
-rrequirements.txt
9
9
pytest < 7.0.0
10
10
pytest-cases
11
+ pytest-rerunfailures
11
12
passenv = LABELBOX_TEST_API_KEY_PROD LABELBOX_TEST_API_KEY_STAGING LABELBOX_TEST_ENVIRON
12
13
commands = pytest {posargs}
You can’t perform that action at this time.
0 commit comments