Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Run js tests on 7.x in CI #3373

Merged
merged 2 commits into from
Feb 8, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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