Skip to content

Commit

Permalink
Auto-generated commit
Browse files Browse the repository at this point in the history
  • Loading branch information
stdlib-bot committed Jul 7, 2021
1 parent a82bb2a commit 617a2c4
Show file tree
Hide file tree
Showing 11 changed files with 317 additions and 32 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/benchmark.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
node-version: 15
- name: Install production and development dependencies
run: |
npm install
npm install || npm install || npm install
- name: Run benchmarks
run: |
npm run benchmark
2 changes: 1 addition & 1 deletion .github/workflows/examples.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
node-version: 15
- name: Install production and development dependencies
run: |
npm install
npm install || npm install || npm install
- name: Run examples
run: |
npm run examples
17 changes: 7 additions & 10 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ name: build

# Workflow triggers:
on:
schedule:
# * is a special character in YAML so you have to quote this string
- cron: '30 1 * * 6'
workflow_dispatch:

# Workflow jobs:
Expand All @@ -36,18 +39,12 @@ jobs:
node-version: 15
- name: Install production and development dependencies
id: install
uses: nick-invision/retry@v2
with:
timeout_minutes: 2
max_attempts: 3
command: npm install
run: |
npm install || npm install || npm install
- name: Run tests
id: tests
uses: nick-invision/retry@v2
with:
timeout_minutes: 3
max_attempts: 2
command: npm test
run: |
npm test || npm test || npm test
- uses: act10ns/slack@v1
with:
status: ${{ job.status }}
Expand Down
17 changes: 7 additions & 10 deletions .github/workflows/test_coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ name: coverage

# Workflow triggers:
on:
workflow_run:
workflows: ["build"]
types: [completed]
workflow_dispatch:

# Workflow jobs:
Expand All @@ -33,17 +36,11 @@ jobs:
with:
node-version: 15
- name: Install production and development dependencies
uses: nick-invision/retry@v2
with:
timeout_minutes: 2
max_attempts: 3
command: npm install
run: |
npm install || npm install || npm install
- name: Calculate test coverage
uses: nick-invision/retry@v2
with:
timeout_minutes: 3
max_attempts: 2
command: npm run test-cov
run: |
npm run test-cov || npm run test-cov || npm run test-cov
- name: Upload coverage to Codecov
id: upload
uses: codecov/codecov-action@v1
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/test_install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ name: Test Installing Dependencies

# Workflow triggers:
on:
schedule:
# * is a special character in YAML so you have to quote this string
- cron: '30 1 * * 6'
workflow_run:
workflows: ["Publish Package"]
types: [completed]
Expand All @@ -38,11 +41,8 @@ jobs:
with:
node-version: 15
- name: Install production dependencies via npm
uses: nick-invision/retry@v2
with:
timeout_minutes: 2
max_attempts: 3
command: npm install --only=prod
run: |
npm install --only=prod || npm install --only=prod || npm install --only=prod
- uses: act10ns/slack@v1
with:
status: ${{ job.status }}
Expand Down
2 changes: 1 addition & 1 deletion base/broadcast-array/docs/types/test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ function array(): ndarray {
broadcastArray( ( x: number ): number => x, [ 2, 2, 2 ] ); // $ExpectError
}

// The compiler throws an error if the function is not provided a second argument which is an array-like object containing array-like objects containing numbers...
// The compiler throws an error if the function is not provided a second argument which is an array-like object containing numbers...
{
const x = array();

Expand Down
2 changes: 1 addition & 1 deletion base/serialize-meta-data/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ console.log( 'dtype (enum): %d', dtype );
// Extract the number of dimensions:
var ndims = fromInt64Bytes( bytes, 1, 3 );
console.log( 'ndims: %d', x.ndims );
console.log( 'ndims: %d', ndims );
// Extract the shape:
var shape = [];
Expand Down
2 changes: 1 addition & 1 deletion base/serialize-meta-data/examples/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ console.log( 'dtype (enum): %d', dtype );

// Extract the number of dimensions:
var ndims = fromInt64Bytes( bytes, 1, 3 );
console.log( 'ndims: %d', x.ndims );
console.log( 'ndims: %d', ndims );

// Extract the shape:
var shape = [];
Expand Down
4 changes: 2 additions & 2 deletions dtypes/benchmark/benchmark.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ bench( pkg, function benchmark( b ) {
b.tic();
for ( i = 0; i < b.iterations; i++ ) {
out = dtypes();
if ( out.length !== 11 ) {
b.fail( 'should return an array of length 11' );
if ( out.length === 0 ) {
b.fail( 'should return a non-empty array' );
}
}
b.toc();
Expand Down
39 changes: 39 additions & 0 deletions dtypes/docs/types/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
{
"compilerOptions": {
"allowSyntheticDefaultImports": false,
"allowUnreachableCode": false,
"allowUnusedLabels": false,
"alwaysStrict": true,
"baseUrl": ".",
"charset": "utf8",
"forceConsistentCasingInFileNames": true,
"keyofStringsOnly": false,
"lib": [
"es6"
],
"locale": "en",
"module": "commonjs",
"moduleResolution": "node",
"newLine": "lf",
"noEmit": true,
"noFallthroughCasesInSwitch": true,
"noImplicitAny": true,
"noImplicitReturns": false,
"noImplicitThis": true,
"noStrictGenericChecks": false,
"noUnusedLocals": true,
"noUnusedParameters": true,
"paths": {},
"pretty": true,
"strictBindCallApply": true,
"strictFunctionTypes": true,
"strictNullChecks": true,
"suppressExcessPropertyErrors": false,
"suppressImplicitAnyIndexErrors": false,
"typeRoots": [ "." ],
"types": []
},
"exclude": [
"node_modules"
]
}
Loading

0 comments on commit 617a2c4

Please sign in to comment.