Skip to content

Commit

Permalink
Add --parallel to percy exec calls & new finalize.
Browse files Browse the repository at this point in the history
  • Loading branch information
T4rk1n committed Apr 8, 2022
1 parent 1befd3c commit 12fc60a
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 8 deletions.
12 changes: 10 additions & 2 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -533,6 +533,14 @@ jobs:
npm run lint
when: always

percy_finalize:
docker:
- image: cimg/node:16.13-browsers
steps:
- checkout
- run: npm run ci
- run: npx percy build:finalize

workflows:
version: 2
tests:
Expand Down Expand Up @@ -588,15 +596,15 @@ workflows:
requires:
- install-dependencies-39

- percy/finalize_all:
- percy_finalize:
requires:
- test-39
- dcc-test-39
- html-python-39
- table-server-test
- artifacts:
requires:
- percy/finalize_all
- percy_finalize
filters:
branches:
only:
Expand Down
4 changes: 2 additions & 2 deletions components/dash-core-components/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@
"private::lint.prettier": "prettier --config .prettierrc src/**/*.js --list-different",
"prepublishOnly": "rm -rf lib && babel src --out-dir lib --copy-files && rm -rf lib/jl/ lib/*.jl",
"test": "run-s -c lint test:intg test:pyimport",
"test:intg": "percy exec -- pytest --headless tests/integration --reruns 3",
"test:ci": "TESTFILES=$(circleci tests glob \"tests/integration/**/test_*.py\" | circleci tests split --split-by=timings) && percy exec -- pytest --headless --junitxml=test-reports/junit_intg.xml --junitprefix=\"components.dash-core-components\" ${TESTFILES} --reruns 3",
"test:intg": "percy exec --parallel -- pytest --headless tests/integration --reruns 3",
"test:ci": "TESTFILES=$(circleci tests glob \"tests/integration/**/test_*.py\" | circleci tests split --split-by=timings) && percy exec --parallel -- pytest --headless --junitxml=test-reports/junit_intg.xml --junitprefix=\"components.dash-core-components\" ${TESTFILES} --reruns 3",
"test:pyimport": "python -m unittest tests/test_dash_import.py",
"prebuild:js": "cp node_modules/plotly.js-dist-min/plotly.min.js dash_core_components_base/plotly.min.js && cp node_modules/mathjax/es5/tex-svg.js dash_core_components_base/mathjax.js",
"build:js": "webpack --mode production",
Expand Down
2 changes: 1 addition & 1 deletion components/dash-html-components/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"build": "npm run build:js && npm run build:backends",
"postbuild": "es-check es5 dash_html_components/*.js",
"build:watch": "watch 'npm run build' src",
"test:py": "percy exec -- pytest --headless tests/test_dash_html_components.py tests/test_integration.py",
"test:py": "percy exec --parallel -- pytest --headless tests/test_dash_html_components.py tests/test_integration.py",
"test": "run-s -c test:py lint"
},
"author": "Chris Parmer <chris@plotly.com>",
Expand Down
4 changes: 2 additions & 2 deletions components/dash-table/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@
"postbuild": "es-check es5 dash_table/bundle.js dash_table/async-*.js",
"format": "run-s private::format.*",
"lint": "run-s private::lint.*",
"test.server": "percy exec -- pytest tests/selenium",
"test.ci-server": "TESTFILES=$(circleci tests glob \"tests/selenium/**/test_*.py\" | circleci tests split --split-by=timings) && percy exec -- pytest --junitxml=test-reports/junit_intg.xml --junitprefix=\"components.dash-table\" ${TESTFILES}",
"test.server": "percy exec --parallel -- pytest tests/selenium",
"test.ci-server": "TESTFILES=$(circleci tests glob \"tests/selenium/**/test_*.py\" | circleci tests split --split-by=timings) && percy exec --parallel -- pytest --junitxml=test-reports/junit_intg.xml --junitprefix=\"components.dash-table\" ${TESTFILES}",
"test.unit": "run-s private::test.python private::test.unit",
"test.visual": "build-storybook && percy-storybook --widths=1280",
"test.visual-local": "build-storybook"
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"private::test.R.deploy-standard": "npm run private::test.setup-standard && cd \\@plotly/dash-generator-test-component-standard && sudo R CMD INSTALL .",
"private::test.unit-dash": "pytest tests/unit --reruns 3",
"private::test.unit-renderer": "cd dash/dash-renderer && npm run test",
"private::test.integration-dash": "TESTFILES=$(circleci tests glob \"tests/integration/**/test_*.py\" | circleci tests split --split-by=timings) && percy exec -- pytest --headless --junitxml=test-reports/junit_intg.xml ${TESTFILES} --reruns 3",
"private::test.integration-dash": "TESTFILES=$(circleci tests glob \"tests/integration/**/test_*.py\" | circleci tests split --split-by=timings) && percy exec --parallel -- pytest --headless --junitxml=test-reports/junit_intg.xml ${TESTFILES} --reruns 3",
"private::test.integration-dash-import": "cd tests/integration/dash && python dash_import_test.py",
"build": "run-s private::build.*",
"build.sequential": "npm run private::build.renderer && npm run private::build.components -- --concurrency 1",
Expand Down

0 comments on commit 12fc60a

Please sign in to comment.