File tree Expand file tree Collapse file tree 4 files changed +27
-7
lines changed Expand file tree Collapse file tree 4 files changed +27
-7
lines changed Original file line number Diff line number Diff line change 24
24
- name : Run deno lint
25
25
run : deno lint --unstable
26
26
27
+ check :
28
+ runs-on : ubuntu-latest
29
+ steps :
30
+ - name : Checkout sources
31
+ uses : actions/checkout@v2
32
+
33
+ - name : Setup latest deno version
34
+ uses : denoland/setup-deno@v1
35
+ with :
36
+ deno-version : v1.x
37
+
38
+ - name : Run deno task check
39
+ run : deno task check
40
+
41
+
27
42
test :
28
43
name : test ${{ matrix.os }}
29
44
runs-on : ${{ matrix.os }}
49
64
run : python3 -m pip install numpy
50
65
51
66
- name : Run deno test
52
- run : deno test --allow-all --unstable
67
+ run : deno task test
Original file line number Diff line number Diff line change 1
1
{
2
2
"tasks" : {
3
+ "check" : " deno task check:mod && deno task check:ext && deno task check:examples" ,
4
+ "check:mod" : " deno check --unstable mod.ts" ,
5
+ "check:ext" : " deno check --unstable ext/*.ts" ,
6
+ "check:examples" : " deno check --unstable examples/*.ts" ,
3
7
"test" : " deno test --unstable -A test/test.ts" ,
4
- "example_hello_python" : " deno run -A --unstable examples/hello_python.ts" ,
5
- "example_matplotlib" : " deno run -A --unstable examples/matplotlib.ts" ,
6
- "example_run_code" : " deno run -A --unstable examples/run_code.ts" ,
7
- "example_tensorflow" : " deno run -A --unstable examples/tensorflow.ts"
8
+ "example:hello_python" : " deno run -A --unstable examples/hello_python.ts" ,
9
+ "example:matplotlib" : " deno run -A --unstable examples/matplotlib.ts" ,
10
+ "example:pip_import" : " deno run -A --unstable examples/pip_import.ts" ,
11
+ "example:run_code" : " deno run -A --unstable examples/run_code.ts" ,
12
+ "example:tensorflow" : " deno run -A --unstable examples/tensorflow.ts"
8
13
}
9
14
}
Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ function getModuleNameAndVersion(module: string): {
41
41
export class Pip {
42
42
#cacheLocation: Promise < string > ;
43
43
44
- constructor ( location : CacheLocation ) {
44
+ constructor ( location ? : CacheLocation ) {
45
45
this . #cacheLocation = Promise . all ( [
46
46
ensureCacheLocation ( location ) ,
47
47
globalThis . location !== undefined
Original file line number Diff line number Diff line change 1
- export * from "https://deno.land/std@0.198.0/testing/asserts .ts" ;
1
+ export * from "https://deno.land/std@0.198.0/assert/mod .ts" ;
You can’t perform that action at this time.
0 commit comments