Skip to content

Commit

Permalink
chore: update addons build step
Browse files Browse the repository at this point in the history
  • Loading branch information
zcf0508 committed Sep 20, 2023
1 parent ed936d0 commit c424758
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 5 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,9 @@ jobs:

- name: Install Dependencies
run: npm install

- name: Build Addons
run: node ./script/post.js

- name: Build Release Files
run: npm run build
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,5 +65,8 @@ jobs:
- name: Install
run: pnpm i

- name: Build Addons
run: node ./script/post.js

- name: Test
run: pnpm run test
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
"license": "MIT",
"private": true,
"scripts": {
"postinstall": "node ./script/post.js",
"dev": "vite",
"lint": "eslint --ext .ts --ext .vue ./src",
"format": "eslint --fix --ext .ts --ext .vue ./src",
Expand Down
8 changes: 4 additions & 4 deletions test/whisper/index.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,19 +23,19 @@ function downloadModel(){
})
}


describe("whisper", async () => {

beforeEach(async () => {
if(!fs.existsSync(modelPath)) {
try {
await downloadModel()
}catch(e) {
if(fs.existsSync(modelPath)) {
fs.unlinkSync(modelPath)
}
return
}
}
})

describe("whisper", async () => {

it("transcribe ", async () => {
const wavFilePath = path.resolve(__dirname, "./jfk.wav");
Expand Down

0 comments on commit c424758

Please sign in to comment.