-
-
Notifications
You must be signed in to change notification settings - Fork 164
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into DynamicTrimGap
- Loading branch information
Showing
39 changed files
with
1,120 additions
and
670 deletions.
There are no files selected for viewing
This file contains 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,6 +1,5 @@ | ||
# Version control | ||
.git | ||
.gitignore | ||
|
||
# Python | ||
__pycache__ | ||
|
This file contains 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,51 @@ | ||
name: CI | ||
|
||
on: | ||
push: | ||
branches: [ "develop", "master" ] | ||
pull_request: | ||
branches: [ "develop", "master" ] | ||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
python-version: ["3.9", "3.10", "3.11"] | ||
fail-fast: false | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
|
||
- name: Set up pip cache | ||
uses: actions/cache@v3 | ||
with: | ||
path: ~/.cache/pip | ||
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements*.txt') }} | ||
restore-keys: | | ||
${{ runner.os }}-pip- | ||
- name: Install PyTorch CPU | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install torch --index-url https://download.pytorch.org/whl/cpu | ||
- name: Install dependencies | ||
run: | | ||
pip install ruff pytest-cov | ||
pip install -r requirements.txt | ||
pip install -r requirements-test.txt | ||
- name: Lint with ruff | ||
run: | | ||
ruff check . | ||
- name: Test with pytest | ||
run: | | ||
pytest --asyncio-mode=auto --cov=api --cov-report=term-missing |
This file contains 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 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,55 @@ | ||
name: Sync develop with master | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
sync-develop: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: write | ||
issues: write | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
ref: develop | ||
|
||
- name: Configure Git | ||
run: | | ||
git config user.name "GitHub Actions" | ||
git config user.email "actions@github.com" | ||
- name: Merge master into develop | ||
run: | | ||
git fetch origin master:master | ||
git merge --no-ff origin/master -m "chore: Merge master into develop branch" | ||
- name: Push changes | ||
run: | | ||
if ! git push origin develop; then | ||
echo "Failed to push to develop branch" | ||
exit 1 | ||
fi | ||
- name: Handle Failure | ||
if: failure() | ||
uses: actions/github-script@v7 | ||
with: | ||
script: | | ||
const issueBody = `Automatic merge from master to develop failed. | ||
Please resolve this manually | ||
Workflow run: ${process.env.GITHUB_SERVER_URL}/${process.env.GITHUB_REPOSITORY}/actions/runs/${process.env.GITHUB_RUN_ID}`; | ||
await github.rest.issues.create({ | ||
owner: context.repo.owner, | ||
repo: context.repo.repo, | ||
title: '🔄 Automatic master to develop merge failed', | ||
body: issueBody, | ||
labels: ['merge-failed', 'automation'] | ||
}); |
This file contains 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,29 +1,45 @@ | ||
# Version control | ||
.git | ||
|
||
output/* | ||
output_audio/* | ||
ui/data/* | ||
|
||
*.db | ||
# Python | ||
__pycache__ | ||
*.pyc | ||
*.pth | ||
*.pt | ||
|
||
Kokoro-82M/* | ||
__pycache__/ | ||
.vscode/ | ||
env/ | ||
*.pyo | ||
*.pyd | ||
.Python | ||
|
||
|
||
*.py[cod] | ||
*$py.class | ||
.pytest_cache | ||
.coverage | ||
.coveragerc | ||
|
||
examples/assorted_checks/benchmarks/output_audio/* | ||
examples/assorted_checks/test_combinations/output/* | ||
examples/assorted_checks/test_openai/output/* | ||
|
||
examples/assorted_checks/test_voices/output/* | ||
examples/assorted_checks/test_formats/output/* | ||
examples/assorted_checks/benchmarks/output_audio_stream/* | ||
ui/RepoScreenshot.png | ||
examples/assorted_checks/benchmarks/output_audio_stream_openai/* | ||
|
||
# Environment | ||
# .env | ||
.venv | ||
env/ | ||
venv/ | ||
ENV/ | ||
|
||
# IDE | ||
.idea | ||
.vscode | ||
*.swp | ||
*.swo | ||
|
||
# Project specific | ||
examples/ | ||
Kokoro-82M/ | ||
ui/ | ||
tests/ | ||
*.md | ||
*.txt | ||
!requirements.txt | ||
|
||
# Docker | ||
Dockerfile* | ||
docker-compose* | ||
|
||
*.egg-info | ||
*.pt | ||
*.wav | ||
*.tar* |
This file contains 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 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 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.