-
Notifications
You must be signed in to change notification settings - Fork 3
feat: extend and clarify the cli #26
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
Merged
Merged
Changes from all commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
04ca3d5
feat: clarify go cli
egenthon-cmd 945d102
refacto: clean python cli
egenthon-cmd 88aaac9
fix: workflow is now only go
egenthon-cmd 451b303
docs: ReadMe Updated for the changes
egenthon-cmd 59e0f74
fix: ignore gladia file (to build with make)
egenthon-cmd 26b0f5c
feat: add language, diarization and code switching to commands
egenthon-cmd d4635cb
fix: restrict permissions on the api-key config file.
egenthon-cmd a29b316
fix: code switching can take no languages
egenthon-cmd eecc7b3
test: add tests for each function
egenthon-cmd ba4e2b2
fix: code switching indifferent to languages
egenthon-cmd 7f81643
docs: update readme
egenthon-cmd fd113f3
ci: remove python check
egenthon-cmd d33e609
fix: diarization request serialization and speaker constraints.
egenthon-cmd 38c2d7d
refacto: move dist in folder
egenthon-cmd 521bdad
feat: add model to tag
egenthon-cmd 93ba13f
ci: add pipeline for release
egenthon-cmd a4c0a62
fix: feedback review
egenthon-cmd 83746ec
feat: add script for smooth curl installation and readme update
egenthon-cmd File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,54 @@ | ||
| name: CodeQL | ||
|
|
||
| on: | ||
| push: | ||
| branches: [main] | ||
| pull_request: | ||
| branches: [main] | ||
| schedule: | ||
| - cron: "27 3 * * 1" | ||
|
|
||
| jobs: | ||
| analyze: | ||
| name: Analyze (${{ matrix.language }}) | ||
| runs-on: ubuntu-latest | ||
| permissions: | ||
| security-events: write | ||
| packages: read | ||
| actions: read | ||
| contents: read | ||
|
|
||
| strategy: | ||
| fail-fast: false | ||
| matrix: | ||
| include: | ||
| - language: go | ||
| build-mode: autobuild | ||
| - language: actions | ||
| build-mode: none | ||
|
|
||
| steps: | ||
| - name: Checkout repository | ||
| uses: actions/checkout@v4 | ||
|
|
||
| - name: Set up Go | ||
| if: matrix.language == 'go' | ||
| uses: actions/setup-go@v5 | ||
| with: | ||
| go-version: "1.22" | ||
| cache: true | ||
|
|
||
| - name: Initialize CodeQL | ||
| uses: github/codeql-action/init@v4 | ||
| with: | ||
| languages: ${{ matrix.language }} | ||
| build-mode: ${{ matrix.build-mode }} | ||
|
|
||
| - name: Autobuild | ||
| if: matrix.build-mode == 'autobuild' | ||
| uses: github/codeql-action/autobuild@v4 | ||
|
|
||
| - name: Perform CodeQL Analysis | ||
| uses: github/codeql-action/analyze@v4 | ||
| with: | ||
| category: "/language:${{matrix.language}}" | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,36 +1,27 @@ | ||
| name: PyInstaller | ||
| name: Build | ||
|
|
||
| on: | ||
| push: | ||
| branches: | ||
| - main | ||
| pull_request: | ||
| branches: | ||
| - main | ||
|
|
||
| jobs: | ||
| build: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: Checkout code | ||
| uses: actions/checkout@v2 | ||
| uses: actions/checkout@v4 | ||
|
|
||
| - name: Set up Python 3.8 | ||
| uses: actions/setup-python@v2 | ||
| - name: Set up Go | ||
| uses: actions/setup-go@v5 | ||
| with: | ||
| python-version: 3.8 | ||
|
|
||
| - name: Install dependencies | ||
| run: | | ||
| pip install --upgrade pip | ||
| pip install pyinstaller click requests prettytable | ||
| go-version: "1.22" | ||
|
|
||
| - name: Build executable | ||
| run: | | ||
| pyinstaller --onefile gladia_cli.py --hidden-import=click --hidden-import=requests --hidden-import=prettytable | ||
|
|
||
| - name: Upload release | ||
| uses: ncipollo/release-action@v1 | ||
| with: | ||
| artifacts: "./dist/gladia_cli" | ||
| bodyFile: "release_note.md" | ||
| env: | ||
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
| - name: Build | ||
| run: make build | ||
|
|
||
| - name: Test | ||
| run: make test |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,33 @@ | ||
| name: Release | ||
|
|
||
| on: | ||
| push: | ||
| tags: | ||
| - "v*" | ||
|
|
||
| permissions: | ||
| contents: write | ||
|
|
||
| jobs: | ||
| release: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: Checkout | ||
| uses: actions/checkout@v7 | ||
| with: | ||
| fetch-depth: 0 | ||
|
egenthon-cmd marked this conversation as resolved.
|
||
| persist-credentials: false | ||
|
|
||
| - name: Set up Go | ||
| uses: actions/setup-go@v6 | ||
| with: | ||
| go-version-file: go.mod | ||
|
egenthon-cmd marked this conversation as resolved.
|
||
|
|
||
| - name: Run GoReleaser | ||
| uses: goreleaser/goreleaser-action@v7 | ||
| with: | ||
| distribution: goreleaser | ||
| version: "~> v2" | ||
| args: release --clean | ||
| env: | ||
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,67 @@ | ||
| version: 2 | ||
|
|
||
| project_name: gladia | ||
|
|
||
| before: | ||
| hooks: | ||
| - go mod tidy | ||
|
|
||
| builds: | ||
| - main: ./cmd/ | ||
| binary: gladia | ||
| ldflags: | ||
| - -s -w -X main.version={{.Version}} | ||
| env: | ||
| - CGO_ENABLED=0 | ||
| goos: | ||
| - linux | ||
| - windows | ||
| - darwin | ||
| goarch: | ||
| - amd64 | ||
| - arm64 | ||
| - "386" | ||
| - arm | ||
| goarm: | ||
| - "7" | ||
| ignore: | ||
| - goos: windows | ||
| goarch: arm64 | ||
| - goos: windows | ||
| goarch: arm | ||
| - goos: darwin | ||
| goarch: "386" | ||
| - goos: darwin | ||
| goarch: arm | ||
|
|
||
| archives: | ||
| - formats: | ||
| - tar.gz | ||
| name_template: "{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}" | ||
| format_overrides: | ||
| - goos: windows | ||
| formats: | ||
| - zip | ||
|
|
||
| checksum: | ||
| name_template: "checksums.txt" | ||
|
|
||
| changelog: | ||
| sort: asc | ||
| filters: | ||
| exclude: | ||
| - "^docs:" | ||
| - "^test:" | ||
| - "^chore:" | ||
| - Merge pull request | ||
| - Merge branch | ||
|
|
||
| release: | ||
| github: | ||
| owner: gladiaio | ||
| name: gladia-cli | ||
| draft: false | ||
| prerelease: auto | ||
| extra_files: | ||
| - glob: install.sh | ||
| - glob: install.ps1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.