test: strengthen wheel install smoke test
This commit is contained in:
committed by
Aaron Boxer
parent
cef3352c5b
commit
0747529910
@@ -84,6 +84,9 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
python-version: '3.12'
|
python-version: '3.12'
|
||||||
|
|
||||||
|
- name: Install system dependencies
|
||||||
|
run: sudo apt-get update && sudo apt-get install -y portaudio19-dev
|
||||||
|
|
||||||
- name: Build package artifacts
|
- name: Build package artifacts
|
||||||
run: |
|
run: |
|
||||||
python -m pip install --upgrade pip
|
python -m pip install --upgrade pip
|
||||||
@@ -94,8 +97,8 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
python -m venv smoke-test-venv
|
python -m venv smoke-test-venv
|
||||||
source smoke-test-venv/bin/activate
|
source smoke-test-venv/bin/activate
|
||||||
pip install --no-deps dist/*.whl
|
pip install dist/*.whl
|
||||||
python -c "import whisper_live"
|
python -c "import whisper_live.client; import whisper_live.server"
|
||||||
|
|
||||||
build-and-push-docker-cpu:
|
build-and-push-docker-cpu:
|
||||||
needs: [run-tests, check-code-format, venv-install-smoke-test]
|
needs: [run-tests, check-code-format, venv-install-smoke-test]
|
||||||
@@ -181,7 +184,7 @@ jobs:
|
|||||||
tags: ghcr.io/collabora/whisperlive-openvino:latest
|
tags: ghcr.io/collabora/whisperlive-openvino:latest
|
||||||
|
|
||||||
publish-to-pypi:
|
publish-to-pypi:
|
||||||
needs: [run-tests, check-code-format]
|
needs: [run-tests, check-code-format, venv-install-smoke-test]
|
||||||
runs-on: ubuntu-22.04
|
runs-on: ubuntu-22.04
|
||||||
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
|
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
|
||||||
steps:
|
steps:
|
||||||
|
|||||||
Reference in New Issue
Block a user