ci:windows install with winget #63
This file contains 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 | |
env: | |
HOMEBREW_NO_INSTALL_CLEANUP: 1 | |
on: | |
push: | |
paths: | |
- "**.py" | |
- .github/workflows/ci.yml | |
jobs: | |
core: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest] | |
python-version: ['3.9', '3.x'] | |
include: | |
- python-version: '3.x' | |
os: macos-latest | |
- python-version: '3.x' | |
os: windows-latest | |
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 (Linux) | |
if: runner.os == 'Linux' | |
run: | | |
sudo apt update | |
sudo apt install --no-install-recommends ffmpeg | |
- name: install prereqs (macOS) | |
if : runner.os == 'macOS' | |
run: brew install ffmpeg | |
- name: Install winget | |
if: runner.os == 'Windows' | |
uses: Cyberboss/install-winget@v1 | |
with: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: install prereqs (Windows) | |
if: runner.os == 'Windows' | |
run: winget install ffmpeg --disable-interactivity --accept-source-agreements | |
- run: pytest |