From fcb1e1d31445f41d3705f8166e51c858620894c0 Mon Sep 17 00:00:00 2001 From: Marco Bonetti Date: Tue, 3 Dec 2024 15:47:19 +0100 Subject: [PATCH] tests: try to run audio tests on gh-actions --- .github/workflows/test.yml | 5 +++++ tox.ini | 3 +++ 2 files changed, 8 insertions(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 6ffa13e..1910f8b 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -78,11 +78,16 @@ jobs: uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} + - name: Install audio dependencies + run: sudo apt-get install sox flite - name: Install and upgrade packaging tools run: python -m pip install --upgrade pip setuptools wheel - run: python -m pip install tox tox-gh-actions - name: Run tests run: tox -e coverage + env: + CAPTCHA_FLITE_PATH: '/usr/bin/flite' + CAPTCHA_SOX_PATH: '/usr/bin/sox' gettext: runs-on: ubuntu-latest diff --git a/tox.ini b/tox.ini index b2a42d1..d7e2a1b 100644 --- a/tox.ini +++ b/tox.ini @@ -99,6 +99,9 @@ commands= [testenv:coverage] changedir = testproject +passenv = + CAPTCHA_FLITE_PATH + CAPTCHA_SOX_PATH deps = coverage