Skip to content

[pre-commit.ci] pre-commit autoupdate #137

[pre-commit.ci] pre-commit autoupdate

[pre-commit.ci] pre-commit autoupdate #137

Workflow file for this run

name: Tests
on: [push, pull_request]
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest,windows-latest,macos-latest]
python-version: ['3.8', '3.9', '3.10']
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install and cache ffmpeg (all OS)
uses: FedericoCarboni/setup-ffmpeg@v2
with:
token: ${{ secrets.GITHUB_TOKEN }}
id: setup-ffmpeg
- name: Install system dependencies (Linux)
if: runner.os == 'Linux'
run: |
sudo apt-get -y install libpango1.0-dev
- name: Install System Dependencies (macOS)
if: runner.os == 'macOS'
run: |
brew install cairo pango
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install poetry
python -m poetry install
- name: Run Tests
run: |
python -m poetry run pytest