Skip to content

Commit

Permalink
Remove the last 8 commits.
Browse files Browse the repository at this point in the history
  • Loading branch information
HaudinFlorence committed Sep 30, 2024
1 parent 051127b commit c26431a
Show file tree
Hide file tree
Showing 9 changed files with 742 additions and 2,580 deletions.
13 changes: 6 additions & 7 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,34 +24,33 @@ jobs:
- name: Install dependencies
run: |
python -m pip install -U codecov "jupyterlab>=4.0.0,<5"
npm install -g codecov
- name: Test the extension
run: |
set -eux
python -m pip install --upgrade -v -e ".[test, examples, docs]"
python -m pip install -v -e ".[test, examples, docs]"
python -m pytest
npm run test
jlpm run test
- name: Lint the extension
env:
YARN_ENABLE_IMMUTABLE_INSTALLS: 0
PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: 1
run: |
set -eux
npm run lint:check
jlpm run lint:check
- name: Build the extension
run: |
set -eux
python -m pip install .[test]
jupyter labextension list
jupyter labextension list 2>&1 | grep -ie "ipylgbst.*OK"
python -m jupyterlab.browser_check
- name: Package the extension
run: |
set -eux
pip install build
python -m build
pip uninstall -y "ipylgbst" jupyterlab
Expand Down
2 changes: 1 addition & 1 deletion jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,5 @@ module.exports = {
],
coverageReporters: ['lcov', 'text'],
testRegex: '/__tests__/.*.spec.ts[x]?$',
transformIgnorePatterns: ['/node_modules/(?!(@jupyter(lab|-widgets)/.*)/)'],
transformIgnorePatterns: ['/node_modules/(?!(@jupyter(lab|-widgets)/.*)/)']
};
6 changes: 5 additions & 1 deletion junit.xml
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<testsuites name="jest tests" tests="0" failures="0" errors="0" time="3.308">
<testsuites name="jest tests" tests="1" failures="0" errors="0" time="4.195">
<testsuite name="Example" errors="0" failures="0" skipped="0" timestamp="2024-09-30T13:57:18" time="3.495" tests="1">
<testcase classname="Example LegoBoostModel should be createable" name="Example LegoBoostModel should be createable" time="0.041">
</testcase>
</testsuite>
</testsuites>
2 changes: 2 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,10 @@ artifacts = ["ipylgbst/labextension"]
exclude = [".github", "binder"]

[tool.hatch.build.targets.wheel.shared-data]
"ipylgbst/nbextension" = "share/jupyter/nbextensions/ipylgbst"
"ipylgbst/labextension" = "share/jupyter/labextensions/ipylgbst"
"install.json" = "share/jupyter/labextensions/ipylgbst/install.json"
"ipylgbst.json" = "etc/jupyter/nbconfig/notebook.d/ipylgbst.json"

[tool.hatch.build.hooks.version]
path = "ipylgbst/_version.py"
Expand Down
2 changes: 1 addition & 1 deletion src/__tests__/index.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

import { createTestModel } from './utils';

import {LegoBoostModel} from "../widget"
import { LegoBoostModel } from '../widget';

describe('Example', () => {
describe('LegoBoostModel', () => {
Expand Down
2 changes: 1 addition & 1 deletion ui-tests/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -164,4 +164,4 @@ To update the web browser versions, you must update the package `@playwright/tes
cd ./ui-tests
jlpm up "@playwright/test"
jlpm playwright install
```
```
2 changes: 1 addition & 1 deletion ui-tests/playwright.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ module.exports = {
timeout: 120 * 1000,
reuseExistingServer: !process.env.CI
}
};
};
2 changes: 1 addition & 1 deletion ui-tests/tests/ipylgbst.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ test.skip('should emit an activation console message', async ({ page }) => {
expect(
logs.filter(s => s === 'JupyterLab extension ipylgbst is activated!')
).toHaveLength(1);
});
});
Loading

0 comments on commit c26431a

Please sign in to comment.