mirror of
https://github.com/xinnan-tech/xiaozhi-esp32-server.git
synced 2026-11-29 05:09:46 +01:00
add ffmpeg install script
This commit is contained in:
parent
ceea119fcd
commit
7bc6154483
1 changed files with 12 additions and 1 deletions
13
.github/workflows/unit_test.yml
vendored
13
.github/workflows/unit_test.yml
vendored
|
|
@ -19,7 +19,7 @@ jobs:
|
|||
strategy:
|
||||
matrix:
|
||||
os: [ubuntu-latest, macos-latest]
|
||||
python-version: ["3.10", "3.11"]
|
||||
python-version: ["3.11"]
|
||||
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
|
|
@ -37,6 +37,17 @@ jobs:
|
|||
python -m pip install pytest
|
||||
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
|
||||
|
||||
- name: Install ffmpeg and libopus
|
||||
run: |
|
||||
if [ ${{ matrix.os }} == 'ubuntu-latest' ]; then
|
||||
sudo apt-get update
|
||||
apt-get install -y --no-install-recommends libopus0 ffmpeg
|
||||
fi
|
||||
|
||||
if [ ${{ matrix.os }} == 'macos-latest' ]; then
|
||||
brew install ffmpeg opus
|
||||
fi
|
||||
|
||||
- name: Run tests with pytest
|
||||
run: |
|
||||
pytest --maxfail=5 --disable-warnings --tb=short
|
||||
|
|
|
|||
Loading…
Reference in a new issue