Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor whisper #1131

Merged
merged 10 commits into from
Oct 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 10 additions & 3 deletions .github/workflows/test-enjoy-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [macos-12, macos-14, windows-latest]
os: [macos-12, macos-14, windows-latest, ubuntu-latest]
steps:
- uses: actions/checkout@v4

Expand All @@ -47,17 +47,24 @@ jobs:
run: yarn enjoy:package

- name: Run main tests with xvfb-run on Ubuntu
continue-on-error: true
if: contains(matrix.os, 'ubuntu')
env:
DEBUG: pw:browser*
run: |
xvfb-run --auto-servernum --server-args="-screen 0 1280x960x24" -- yarn enjoy:test:main

- name: Run main tests on macOS or Windows
if: contains(matrix.os, 'macos') || contains(matrix.os, 'windows')
- name: Run main tests on Windows
continue-on-error: true
if: contains(matrix.os, 'windows')
run: yarn enjoy:test:main

- name: Run main tests on macOS
if: contains(matrix.os, 'macos')
run: yarn enjoy:test:main

- name: Run renderer tests with xvfb-run on Ubuntu
continue-on-error: true
if: contains(matrix.os, 'ubuntu')
run: |
xvfb-run --auto-servernum --server-args="-screen 0 1280x960x24" -- yarn enjoy:test:renderer
Expand Down
4 changes: 2 additions & 2 deletions 1000h-portal/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,14 @@
"dependencies": {
"@nuxtjs/seo": "^2.0.0-rc.23",
"nuxt": "^3.13.2",
"nuxt-og-image": "^3.0.4",
"nuxt-og-image": "^3.0.6",
"vue": "^3.5.12",
"vue-router": "^4.4.5"
},
"devDependencies": {
"autoprefixer": "^10.4.20",
"postcss": "^8.4.47",
"sass": "^1.79.5",
"tailwindcss": "^3.4.13"
"tailwindcss": "^3.4.14"
}
}
19 changes: 10 additions & 9 deletions enjoy/e2e/main.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,17 @@ test.afterAll(async () => {
await electronApp.close();
});

test("validate whisper command", async () => {
test("validate echogarden command", async () => {
const res = await page.evaluate(() => {
return window.__ENJOY_APP__.whisper.check();
return window.__ENJOY_APP__.echogarden.check({
engine: "whisper",
whisper: {
model: "tiny.en",
language: "en",
encoderProvider: "cpu",
decoderProvider: "cpu",
},
});
});
console.info(res.log);
expect(res.success).toBeTruthy();
Expand All @@ -75,13 +83,6 @@ test("valid ffmpeg command", async () => {
expect(res).toBeTruthy();
});

test("validate echogarden align command", async () => {
const res = await page.evaluate(() => {
return window.__ENJOY_APP__.echogarden.check();
});
expect(res).toBeTruthy();
});

test("should setup default library path", async () => {
const settings = fs.readJsonSync(path.join(resultDir, "settings.json"));
expect(settings.library).not.toBeNull();
Expand Down
Loading
Loading