Skip to content

Commit

Permalink
CI: load ASIO DLL
Browse files Browse the repository at this point in the history
  • Loading branch information
mgeier committed Oct 1, 2024
1 parent 6cdd114 commit 00ef17c
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion .github/workflows/sounddevice-data.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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())"

0 comments on commit 00ef17c

Please sign in to comment.