-
Notifications
You must be signed in to change notification settings - Fork 996
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c7be2f1
commit b922d65
Showing
8 changed files
with
299 additions
and
563 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 |
---|---|---|
|
@@ -164,10 +164,6 @@ jobs: | |
poetry run make bundle_windows | ||
elif [ "$RUNNER_OS" == "Linux" ]; then | ||
poetry run make bundle_linux | ||
fi | ||
env: | ||
BUZZ_CODESIGN_IDENTITY: ${{ secrets.BUZZ_CODESIGN_IDENTITY }} | ||
|
@@ -188,79 +184,6 @@ jobs: | |
dist/Buzz*-mac.dmg | ||
dist/buzz-*.deb | ||
benchmark: | ||
runs-on: ${{ matrix.os }} | ||
if: github.ref == 'refs/heads/main' | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
include: | ||
- os: macos-latest | ||
- os: windows-latest | ||
- os: ubuntu-20.04 | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
submodules: recursive | ||
|
||
- uses: actions/setup-python@v4 | ||
with: | ||
python-version: "3.10.7" | ||
|
||
- name: Install Poetry Action | ||
uses: snok/[email protected] | ||
with: | ||
virtualenvs-create: true | ||
virtualenvs-in-project: true | ||
|
||
- name: Load cached venv | ||
id: cached-poetry-dependencies | ||
uses: actions/cache@v3 | ||
with: | ||
path: .venv | ||
key: venv-${{ runner.os }}-${{ hashFiles('**/poetry.lock') }}-2 | ||
|
||
- name: Load cached Whisper models | ||
id: cached-whisper-models | ||
uses: actions/cache@v3 | ||
with: | ||
path: | | ||
~/Library/Caches/Buzz | ||
~/.cache/whisper | ||
~/.cache/huggingface | ||
~/AppData/Local/Buzz/Buzz/Cache | ||
key: whisper-models-${{ runner.os }} | ||
|
||
- uses: FedericoCarboni/setup-ffmpeg@v1 | ||
id: setup-ffmpeg | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Install dependencies | ||
run: poetry install | ||
|
||
- name: Install apt dependencies | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install --no-install-recommends libyaml-dev libegl1-mesa libxkbcommon-x11-0 libxcb-icccm4 libxcb-image0 libxcb-keysyms1 libxcb-randr0 libxcb-render-util0 libxcb-xinerama0 libxcb-shape0 libxcb-cursor0 libportaudio2 gettext | ||
if: "startsWith(matrix.os, 'ubuntu-')" | ||
|
||
- name: Test | ||
run: | | ||
poetry run make benchmarks | ||
shell: bash | ||
|
||
- name: Store benchmark results | ||
uses: benchmark-action/github-action-benchmark@v1 | ||
with: | ||
name: ${{ runner.os }} | ||
tool: "pytest" | ||
output-file-path: benchmarks.json | ||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
comment-on-alert: true | ||
summary-always: true | ||
auto-push: true | ||
|
||
publish-pypi: | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
|
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.