From 00ef17cc8f3217128381a22135364460b5824e1a Mon Sep 17 00:00:00 2001 From: Matthias Geier Date: Tue, 1 Oct 2024 21:22:53 +0200 Subject: [PATCH] CI: load ASIO DLL --- .github/workflows/sounddevice-data.yml | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/.github/workflows/sounddevice-data.yml b/.github/workflows/sounddevice-data.yml index a790098..3b1aecb 100644 --- a/.github/workflows/sounddevice-data.yml +++ b/.github/workflows/sounddevice-data.yml @@ -33,8 +33,22 @@ jobs: working-directory: git-repo run: | python -m pip install . - - name: Run tests + - name: Import module run: | python -m sounddevice python -c "import sounddevice as sd; print(sd._libname)" python -c "import sounddevice as sd; print(sd.get_portaudio_version())" + python -c "import sounddevice as sd; print(sd.query_hostapis())" + python -c "import sounddevice as sd; assert 'asio' not in sd._libname" + python -c "import sounddevice as sd; assert not any(a['name'] == 'ASIO' for a in sd.query_hostapis())" + - name: Import module (using the ASIO DLL) + if: startsWith(matrix.os, 'windows') + env: + SD_ENABLE_ASIO: 1 + run: | + python -m sounddevice + python -c "import sounddevice as sd; print(sd._libname)" + python -c "import sounddevice as sd; print(sd.get_portaudio_version())" + python -c "import sounddevice as sd; print(sd.query_hostapis())" + python -c "import sounddevice as sd; assert 'asio' in sd._libname" + python -c "import sounddevice as sd; assert any(a['name'] == 'ASIO' for a in sd.query_hostapis())"