Skip to content

Commit 17c824d

Browse files
author
BryanSchroeder
committed
adding async tests
1 parent f19fe23 commit 17c824d

File tree

4 files changed

+1028
-0
lines changed

4 files changed

+1028
-0
lines changed

.circleci/config.yml

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,57 @@ jobs:
219219
- store_artifacts:
220220
path: /tmp/dash_artifacts
221221

222+
test-312-async: &test
223+
working_directory: ~/dash
224+
docker:
225+
- image: cimg/python:3.12.1-browsers
226+
auth:
227+
username: dashautomation
228+
password: $DASH_PAT_DOCKERHUB
229+
environment:
230+
PERCY_ENABLE: 1
231+
PERCY_PARALLEL_TOTAL: -1
232+
PUPPETEER_SKIP_CHROMIUM_DOWNLOAD: True
233+
PYVERSION: python312
234+
REDIS_URL: redis://localhost:6379
235+
- image: cimg/redis:6.2.6
236+
auth:
237+
username: dashautomation
238+
password: $DASH_PAT_DOCKERHUB
239+
parallelism: 3
240+
steps:
241+
- checkout:
242+
path: ~/dash
243+
- run: sudo apt-get update
244+
- run: echo $PYVERSION > ver.txt
245+
- run: cat requirements/*.txt > requirements-all.txt
246+
- restore_cache:
247+
key: dep-{{ checksum ".circleci/config.yml" }}-{{ checksum "ver.txt" }}-{{ checksum "requirements-all.txt" }}
248+
- browser-tools/install-browser-tools:
249+
chrome-version: 120.0.6099.71
250+
install-firefox: false
251+
install-geckodriver: false
252+
- attach_workspace:
253+
at: ~/dash
254+
- run:
255+
name: ️️🏗️ Install package
256+
command: |
257+
. venv/bin/activate
258+
npm ci
259+
pip install dash-package/dash-package.tar.gz[async,ci,dev,testing,celery,diskcache] --progress-bar off
260+
pip list | grep dash
261+
- run:
262+
name: 🧪 Run Integration Tests
263+
command: |
264+
. venv/bin/activate
265+
npm run citest.integration
266+
- store_artifacts:
267+
path: test-reports
268+
- store_test_results:
269+
path: test-reports
270+
- store_artifacts:
271+
path: /tmp/dash_artifacts
272+
222273
test-312-react-18:
223274
<<: *test
224275
docker:
@@ -627,6 +678,9 @@ workflows:
627678
- test-312:
628679
requires:
629680
- install-dependencies-312
681+
- test-312-async:
682+
requires:
683+
- install-dependencies-312
630684
- test-312-react-18:
631685
requires:
632686
- install-dependencies-312

tests/integration/async/__init__.py

Whitespace-only changes.

0 commit comments

Comments
 (0)