Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ENH: Cleaner bash #17

Merged
merged 3 commits into from
Jun 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 8 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,20 +18,24 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-22.04, ubuntu-20.04, windows-2022, windows-2019, macos-14, macos-13, macos-12]
python: ['3.12']
python: ['3.12', '3.8']
defaults:
run:
shell: bash -e {0}
steps:
- uses: actions/checkout@v4
- uses: ./
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python }}
name: Setup python
- uses: ./
- run: pip install sounddevice
- run: python -m sounddevice
- run: |
set -o pipefail
set -xeo pipefail
python -m sounddevice | grep "[82] out"
name: Check that there is some output device
- run: sleep 10
- run: |
set -xeo pipefail
python -m sounddevice | grep "[82] out"
name: Check that there is some output device after sleep
8 changes: 6 additions & 2 deletions linux/setup_sound.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
#!/bin/bash -e
#!/bin/bash

set -xeo pipefail

sudo apt update
sudo apt install -y pulseaudio libportaudio2 dbus-x11 libasound-dev
dbus-launch pulseaudio --start
systemctl --user restart pulseaudio.service
systemctl --user restart pulseaudio.socket
pactl list
3 changes: 2 additions & 1 deletion macos/setup_sound.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/bin/bash -e
#!/bin/bash

set -xeo pipefail
brew install --cask background-music
sudo launchctl kickstart -kp system/com.apple.audio.coreaudiod || sudo killall coreaudiod
Loading