Skip to content

Commit

Permalink
brew install ffmpeg on mac to fix CI tests
Browse files Browse the repository at this point in the history
Temporary fix for issue imageio/imageio-ffmpeg#71
  • Loading branch information
GenevieveBuckley authored May 24, 2024
1 parent ff9d817 commit b237ef6
Showing 1 changed file with 26 additions and 1 deletion.
27 changes: 26 additions & 1 deletion .github/workflows/test_and_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,26 @@ jobs:
uses: actions/setup-python@v4
with:
python-version: 3.8

# Temporary fix for 'pip install imageio-ffmpeg'
# not including the FFMPEG binary on Apple Silicon macs
# This step can be removed when issue is fixed in imageio-ffmpeg
# https://github.com/imageio/imageio-ffmpeg/issues/71
- name: brew install ffmpeg
if: runner.os == 'macOS'
uses: artemnovichkov/[email protected]
run: |
brew update
brew install ffmpeg
- name: Install dependencies
run: |
pip install --upgrade pip
pip install tox
- name: Run task
- name: Run tox
run: tox -e ${{ matrix.task }}

test:
name: ${{ matrix.platform }} py${{ matrix.python-version }}
runs-on: ${{ matrix.platform }}
Expand All @@ -64,6 +78,17 @@ jobs:
powershell gl-ci-helpers/appveyor/install_opengl.ps1
if (Test-Path -Path "C:\Windows\system32\opengl32.dll" -PathType Leaf) {Exit 0} else {Exit 1}
# Temporary fix for 'pip install imageio-ffmpeg'
# not including the FFMPEG binary on Apple Silicon macs
# This step can be removed when issue is fixed in imageio-ffmpeg
# https://github.com/imageio/imageio-ffmpeg/issues/71
- name: brew install ffmpeg
if: runner.os == 'macOS'
uses: artemnovichkov/[email protected]
run: |
brew update
brew install ffmpeg
- name: Install dependencies
run: |
python -m pip install --upgrade pip
Expand Down

0 comments on commit b237ef6

Please sign in to comment.