Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main' into swernli/impl-attrs
Browse files Browse the repository at this point in the history
  • Loading branch information
swernli committed Oct 16, 2023
2 parents 2e4dd4c + 23ad464 commit 7eaa894
Show file tree
Hide file tree
Showing 16 changed files with 1,790 additions and 902 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,8 @@ jobs:

integration-tests:
name: Integration tests
if: ${{ ! github.event.pull_request }}
timeout-minutes: 15
strategy:
matrix:
os: [windows-latest, ubuntu-latest, macos-latest]
Expand Down
9 changes: 6 additions & 3 deletions build.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,14 +117,17 @@

def step_start(description):
global start_time
print(f"build.py step: {description}")
prefix = "::group::" if os.getenv("GITHUB_ACTIONS") == "true" else ""
print(f"{prefix}build.py: {description}")
start_time = time.time()


def step_end():
global start_time
duration = time.time() - start_time
print(f"build.py step: Finished in {duration:.3f}s.")
print(f"build.py: Finished in {duration:.3f}s.")
if os.getenv("GITHUB_ACTIONS") == "true":
print(f"::endgroup::")


if npm_install_needed:
Expand Down Expand Up @@ -386,6 +389,6 @@ def step_end():

if args.integration_tests:
step_start("Running the VS Code integration tests")
vscode_args = [npm_cmd, "test"]
vscode_args = [npm_cmd, "test", "--", "--verbose"]
subprocess.run(vscode_args, check=True, text=True, cwd=vscode_src)
step_end()
2 changes: 1 addition & 1 deletion jupyterlab/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
"typescript": "^5.0.2"
},
"dependencies": {
"@codemirror/language": "6.6.0",
"@codemirror/language": "6.9.1",
"@codemirror/legacy-modes": "6.3.2",
"@jupyterlab/application": "^4.0.0",
"@jupyterlab/codemirror": "^4.0.0",
Expand Down
2 changes: 0 additions & 2 deletions jupyterlab/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@ import {
} from "@jupyterlab/application";

import { IEditorLanguageRegistry } from "@jupyterlab/codemirror";
// @ts-expect-error No typings avaiable for @codemirror/legacy-modes
import { simpleMode } from "@codemirror/legacy-modes/mode/simple-mode";
// @ts-expect-error No typings avaiable for @codemirror/language
import { LanguageSupport, StreamLanguage } from "@codemirror/language";
import { INotebookTracker, NotebookPanel } from "@jupyterlab/notebook";
import { ICellModel } from "@jupyterlab/cells/lib/model";
Expand Down
7 changes: 5 additions & 2 deletions jupyterlab/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
{
"compilerOptions": {
"target": "ES2020",
"moduleResolution": "nodenext",
// To ensure compatibility with jupyterlab, options impacting emit (target,module) are copied from
// https://github.com/jupyterlab/jupyterlab/blob/c6744e548c7b2790e4c6a4d41a60aae03f22c62a/tsconfigbase.json
"target": "ES2018",
"module": "esnext",
"moduleResolution": "node",
"outDir": "lib",
"rootDir": "src",
"strict": true,
Expand Down
Loading

0 comments on commit 7eaa894

Please sign in to comment.