Skip to content

Commit

Permalink
Merge pull request #3373 from jasongrout/tests7x
Browse files Browse the repository at this point in the history
Run js tests on 7.x in CI
  • Loading branch information
vidartf authored Feb 8, 2022
2 parents b9a0fa9 + 18660f6 commit 0a6ac82
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 6 deletions.
28 changes: 24 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,14 +48,34 @@ jobs:
- name: Build the extension
run: |
pip install -e .[test]
jlpm install
jlpm run build
cd jupyterlab_widgets
yarn install --frozen-lockfile
yarn run build
yarn run build:examples
pushd jupyterlab_widgets
pwd
pip install -e .
jupyter labextension develop . --overwrite
jupyter labextension list
python -m jupyterlab.browser_check
popd
- name: Run Python tests
run: pytest .
- name: Run JS tests
run: |
pushd packages/base
yarn run test:unit:firefox:headless
popd
pushd packages/controls
yarn run test:unit:firefox:headless
popd
pushd packages/html-manager
yarn run test:unit:firefox:headless
popd
pushd examples/web1
yarn run test:firefox:headless
popd
3 changes: 2 additions & 1 deletion examples/web1/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
"test": "npm run test:firefox && npm run test:chrome",
"test:chrome": "npm run test:default",
"test:default": "karma start karma.config.js --log-level debug",
"test:firefox": "npm run test:default -- --browsers Firefox"
"test:firefox": "npm run test:default -- --browsers Firefox",
"test:firefox:headless": "npm run test:default -- --browsers FirefoxHeadless"
},
"dependencies": {
"@jupyter-widgets/base": "^4.0.0",
Expand Down
1 change: 1 addition & 0 deletions packages/base/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
"test:unit:chrome": "npm run test:unit:default -- --browsers=Chrome",
"test:unit:default": "npm run build:test && karma start test/karma.conf.js --log-level debug",
"test:unit:firefox": "npm run test:unit:default -- --browsers=Firefox",
"test:unit:firefox:headless": "npm run test:unit:default -- --browsers=FirefoxHeadless",
"test:unit:ie": "npm run test:unit:default -- --browsers=IE"
},
"dependencies": {
Expand Down
1 change: 1 addition & 0 deletions packages/controls/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
"test:unit:chrome": "npm run test:unit:default -- --browsers=Chrome",
"test:unit:default": "npm run build:test && karma start test/karma.conf.js --log-level debug",
"test:unit:firefox": "npm run test:unit:default -- --browsers=Firefox",
"test:unit:firefox:headless": "npm run test:unit:default -- --browsers=FirefoxHeadless",
"test:unit:ie": "npm run test:unit:default -- --browsers=IE"
},
"dependencies": {
Expand Down
3 changes: 2 additions & 1 deletion packages/html-manager/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@
"test:unit": "npm run test:unit:firefox && npm run test:unit:chrome",
"test:unit:chrome": "npm run test:unit:default -- --browsers=Chrome",
"test:unit:default": "npm run build:test && karma start test/karma.conf.js --log-level debug --browsers=Firefox",
"test:unit:firefox": "npm run test:unit:default -- --browsers=Firefox"
"test:unit:firefox": "npm run test:unit:default -- --browsers=Firefox",
"test:unit:firefox:headless": "npm run test:unit:default -- --browsers=FirefoxHeadless"
},
"dependencies": {
"@jupyter-widgets/base": "^4.0.0",
Expand Down

0 comments on commit 0a6ac82

Please sign in to comment.