Skip to content

Add error_callback to ASRProcessor and use it #461

Add error_callback to ASRProcessor and use it

Add error_callback to ASRProcessor and use it #461

Workflow file for this run

name: Run Unit Tests
on:
push:
branches:
- 'main'
pull_request:
branches:
- '**'
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Python 3.12
uses: actions/setup-python@v4
with:
python-version: 3.12
- name: Install system dependencies
run: |
sudo apt-get update
sudo apt-get install -y portaudio19-dev python3-pyaudio ffmpeg
- name: Install Poetry
uses: snok/install-poetry@v1
with:
version: 2.0.1
virtualenvs-create: true
virtualenvs-in-project: true
- name: Install dependencies
run: |
poetry install --no-interaction
- name: Run unit tests
run: |
poetry run pytest --log-cli-level=DEBUG -s
- name: Upload test results
uses: actions/upload-artifact@v4
if: always()
with:
name: test-results-${{ runner.os }}
path: pytest-results/