Skip to content

Commit 336b0b6

Browse files
authored
Use vitest for lib test (#1023)
* Use vitest for lib test * カバレッジファイル指定 * Fix test commandline options and improve test options * Update Coveralls action version and fix file parameter in workflows * Update Coveralls action version to v2 in GitHub workflows * Increase timeout for 'update' test in lppool test suite * Enhance test reliability by adding retry options to various model tests * Increase retry count for default MacQueenKMeans test to improve test stability * Increase retry count for kernel tests in Forgetron model to enhance test stability
1 parent 1cbb994 commit 336b0b6

File tree

447 files changed

+1638
-1664
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

447 files changed

+1638
-1664
lines changed

.github/workflows/gh-pages.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,12 @@ jobs:
2828
- name: Prepare ONNX
2929
run: npm run create-onnx -t
3030
- name: Test lib
31-
run: npm run test:lib --bail
31+
run: npm run test:lib -- --bail 1
3232
- name: Coveralls
33-
uses: coverallsapp/github-action@master
33+
uses: coverallsapp/github-action@v2
3434
with:
3535
github-token: ${{ secrets.GITHUB_TOKEN }}
36+
file: coverage/clover.xml
3637
continue-on-error: true
3738
test-js:
3839
runs-on: ubuntu-latest

.github/workflows/npm.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
- name: Prepare ONNX
1616
run: npm run create-onnx -t
1717
- name: Test
18-
run: npm run test:lib --bail
18+
run: npm run test:lib -- --bail 1
1919
publish:
2020
runs-on: ubuntu-latest
2121
needs: test

.github/workflows/test.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,12 @@ jobs:
1313
- name: Prepare ONNX
1414
run: npm run create-onnx -t
1515
- name: Test lib
16-
run: npm run test:lib --bail
16+
run: npm run test:lib -- --bail 1
1717
- name: Coveralls
18-
uses: coverallsapp/github-action@master
18+
uses: coverallsapp/github-action@v2
1919
with:
2020
github-token: ${{ secrets.GITHUB_TOKEN }}
21+
file: coverage/clover.xml
2122
continue-on-error: true
2223
test-js:
2324
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)