ci: update ffmpeg winget #28
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, pull_request] | |
jobs: | |
core: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest, macos-latest, windows-latest] | |
python-version: [">=3.9"] | |
include: | |
- os: ubuntu-latest | |
python-version: '3.9' | |
name: ${{ matrix.os }}-Python-${{ matrix.python-version }} | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- run: pip install .[tests,lint] | |
- run: flake8 | |
- run: mypy | |
- name: install prereqs (Windows) | |
if: runner.os == 'Windows' | |
run: winget install ffmpeg --disable-interactivity --accept-source-agreements | |
- name: FFMPEG_ROOT Windows | |
if: runner.os == 'Windows' | |
run: echo "FFMPEG_ROOT=$env:LOCALAPPDATA/Microsoft/WinGet/Links/" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append | |
- name: Install (macos) | |
if: runner.os == 'macOS' | |
run: brew install ffmpeg | |
- name: Install (linux) | |
if: runner.os == 'Linux' | |
run: | | |
sudo apt update | |
sudo apt install --no-install-recommends ffmpeg | |
- run: pytest |