Fix Ubuntu FFmpeg installation in CI #50
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: CI | |
| on: | |
| push: | |
| branches: | |
| - master | |
| pull_request: | |
| branches: | |
| - master | |
| jobs: | |
| build: | |
| name: "Python ${{ matrix.python-version }} on ${{ matrix.os }}" | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: [ubuntu-latest, macos-latest, windows-latest] | |
| python-version: ["3.8","3.9","3.10"] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Python ${{ matrix.python-version }} | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Install system dependencies on macOS | |
| if: runner.os == 'macOS' | |
| run: | | |
| brew install ffmpeg | |
| - name: Install system dependencies on Ubuntu | |
| if: runner.os == 'Linux' | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y ffmpeg | |
| - name: Install FFmpeg on Windows | |
| if: runner.os == 'Windows' | |
| uses: FedericoCarboni/setup-ffmpeg@v3 | |
| id: setup-ffmpeg | |
| - name: Install Python dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| python -m pip install numpy scipy matplotlib opencv-python | |
| - name: Install musicalgestures | |
| run: | | |
| python -m pip install musicalgestures | |
| - name: Test basic import | |
| run: | | |
| python -c "import musicalgestures; print('MGT-python import successful')" |