Skip to content

Commit 9bf3bb4

Browse files
authored
Stabilized CI (#255)
1 parent 1af4431 commit 9bf3bb4

File tree

10 files changed

+18
-10
lines changed

10 files changed

+18
-10
lines changed

.github/workflows/examples.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ jobs:
6161
working-directory: examples/myworker
6262
timeout-minutes: 10
6363
run: |
64-
pytest -xsv tests
64+
pytest -xsv tests --reruns 3 --rerun-except AssertionError
6565
6666
range:
6767
runs-on: ${{ matrix.os }}
@@ -94,7 +94,7 @@ jobs:
9494
working-directory: examples/range
9595
timeout-minutes: 30
9696
run: |
97-
pytest -xsv tests
97+
pytest -xsv tests --reruns 3 --rerun-except AssertionError
9898
9999
rabbitmq_management:
100100
runs-on: ${{ matrix.os }}
@@ -127,7 +127,7 @@ jobs:
127127
working-directory: examples/rabbitmq_management
128128
timeout-minutes: 10
129129
run: |
130-
pytest -xsv tests
130+
pytest -xsv tests --reruns 3 --rerun-except AssertionError
131131
132132
django:
133133
runs-on: ${{ matrix.os }}
@@ -166,7 +166,7 @@ jobs:
166166
timeout-minutes: 10
167167
run: |
168168
export DJANGO_SETTINGS_MODULE=proj.settings
169-
pytest -xsv tests
169+
pytest -xsv tests --reruns 3 --rerun-except AssertionError
170170
171171
myutils:
172172
runs-on: ${{ matrix.os }}
@@ -199,7 +199,7 @@ jobs:
199199
working-directory: examples/myutils
200200
timeout-minutes: 10
201201
run: |
202-
pytest -xsv tests
202+
pytest -xsv tests --reruns 3 --rerun-except AssertionError
203203
204204
worker_pool:
205205
runs-on: ${{ matrix.os }}
@@ -232,7 +232,7 @@ jobs:
232232
working-directory: examples/worker_pool
233233
timeout-minutes: 10
234234
run: |
235-
pytest -xsv tests
235+
pytest -xsv tests --reruns 3 --rerun-except AssertionError
236236
237237
hybrid_setup:
238238
runs-on: ${{ matrix.os }}
@@ -265,7 +265,7 @@ jobs:
265265
working-directory: examples/hybrid_setup
266266
timeout-minutes: 10
267267
run: |
268-
pytest -xsv tests
268+
pytest -xsv tests --reruns 3 --rerun-except AssertionError
269269
270270
vhost:
271271
runs-on: ${{ matrix.os }}
@@ -298,4 +298,4 @@ jobs:
298298
working-directory: examples/vhost
299299
timeout-minutes: 10
300300
run: |
301-
pytest -xsv tests
301+
pytest -xsv tests --reruns 3 --rerun-except AssertionError

.github/workflows/python-package.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ jobs:
122122
- name: Run tox for "${{ matrix.python-version }}-integration"
123123
timeout-minutes: 15
124124
run: |
125-
tox --verbose --verbose -e "${{ matrix.python-version }}-integration" -- -n auto --reruns 2 --rerun-except AssertionError
125+
tox --verbose --verbose -e "${{ matrix.python-version }}-integration" -- -n auto --reruns 3 --rerun-except AssertionError
126126
127127
Smoke:
128128
needs:
@@ -167,4 +167,4 @@ jobs:
167167
- name: Run tox for "${{ matrix.python-version }}-smoke"
168168
timeout-minutes: 30
169169
run: |
170-
tox --verbose --verbose -e "${{ matrix.python-version }}-smoke" -- -n auto --reruns 2 --rerun-except AssertionError
170+
tox --verbose --verbose -e "${{ matrix.python-version }}-smoke" -- -n auto --reruns 3 --rerun-except AssertionError

examples/django/requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,5 @@ sqlalchemy>=1.2.18
22
django>=2.2.1
33
pytest-django>=4.7.0
44
pytest-xdist>=3.5.0
5+
pytest-rerunfailures>=14.0
56
pytest-celery[all]@git+https://github.com/celery/pytest-celery.git
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
pytest>=7.4.4
22
pytest-xdist>=3.5.0
33
pytest-subtests>=0.11.0
4+
pytest-rerunfailures>=14.0
45
celery[gevent]
56
pytest-celery[all]@git+https://github.com/celery/pytest-celery.git

examples/myutils/requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
pytest>=7.4.4
22
pytest-xdist>=3.5.0
3+
pytest-rerunfailures>=14.0
34
pytest-celery[all]@git+https://github.com/celery/pytest-celery.git

examples/myworker/requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
pytest>=7.4.4
22
pytest-xdist>=3.5.0
3+
pytest-rerunfailures>=14.0
34
pytest-celery[all]@git+https://github.com/celery/pytest-celery.git
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
pytest>=7.4.4
22
pytest-xdist>=3.5.0
3+
pytest-rerunfailures>=14.0
34
pytest-celery[all]@git+https://github.com/celery/pytest-celery.git

examples/range/requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
pytest>=7.4.4
22
pytest-xdist>=3.5.0
33
pytest-subtests>=0.11.0
4+
pytest-rerunfailures>=14.0
45
pytest-celery[all]@git+https://github.com/celery/pytest-celery.git

examples/vhost/requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
pytest>=7.4.4
22
pytest-xdist>=3.5.0
3+
pytest-rerunfailures>=14.0
34
pytest-celery[all]@git+https://github.com/celery/pytest-celery.git

examples/worker_pool/requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
pytest>=7.4.4
22
pytest-xdist>=3.5.0
33
pytest-subtests>=0.11.0
4+
pytest-rerunfailures>=14.0
45
celery[gevent]
56
pytest-celery[all]@git+https://github.com/celery/pytest-celery.git

0 commit comments

Comments
 (0)