Skip to content

Commit

Permalink
Create wave_reader.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
cclauss authored Nov 4, 2024
1 parent c6e6acd commit b064ef2
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/wave_reader.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: wave_reader
on:
workflow_dispatch:
jobs:
wave_reader:
name: "${{ github.event.inputs.repo }}"
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
python-version: ['3.9', '3.11', '3.13']
max-parallel: 9
runs-on: ${{ matrix.os }}
steps:
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- run: pip install --upgrade pip
- run: pip install scipy
- run: pip show scipy
- shell: python
run: |
import wave
from importlib.util import find_spec
from pathlib import Path
scipy_path = Path(find_spec("scipy").submodule_search_locations[0])
print(f"{scipy_path = }")
wave_filepath = scipy_path / "scipy/io/tests/data/test-8000Hz-be-3ch-5S-24bit.wav"
print(f"{wave_filepath = } {wave_filepath.exists() = }
wave_filepath = scipy_path / "io/tests/data/test-8000Hz-be-3ch-5S-24bit.wav"
print(f"{wave_filepath = } {wave_filepath.exists() = }

0 comments on commit b064ef2

Please sign in to comment.