Skip to content

Commit 45987bc

Browse files
authored
Merge pull request #3352 from plotly/async-alone
run async test in separate step & flaky cbsc001
2 parents f531328 + cff30cb commit 45987bc

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

.github/workflows/testing.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@ jobs:
3434
- 'dash/dash-renderer/**'
3535
- 'dash/_callback.py'
3636
- 'dash/_callback_context.py'
37+
- 'tests/background_callback/**'
38+
- 'tests/async_tests/**'
3739
- 'requirements/**'
3840
3941
build:
@@ -263,6 +265,10 @@ jobs:
263265
cd bgtests
264266
touch __init__.py
265267
pytest --headless --nopercyfinalize tests/background_callback -v -s
268+
269+
- name: Run Async Callback Tests
270+
run: |
271+
cd bgtests
266272
pytest --headless --nopercyfinalize tests/async_tests -v -s
267273
268274
table-unit:

tests/async_tests/test_async_callbacks.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
import json
22
import time
33

4+
import flaky
5+
46
from multiprocessing import Lock, Value
57
import pytest
68

@@ -27,6 +29,7 @@
2729
from tests.utils import is_dash_async
2830

2931

32+
@flaky.flaky(max_runs=3)
3033
def test_async_cbsc001_simple_callback(dash_duo):
3134
if not is_dash_async():
3235
return

0 commit comments

Comments
 (0)