Skip to content

Tests gstream

Tests gstream #815

Workflow file for this run

name: Tests
run-name: Tests ${{ github.ref_name }}
on:
push:
pull_request:
branches: [main]
types: [opened, edited, reopen, synchronize, ready_for_review]
workflow_dispatch:
jobs:
lint:
name: Linters/Type Checkers
strategy:
matrix:
python: [3.8, 3.12]
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python }}
- name: Install
run: pip install -e '.[linting]'
- name: Run flake8
run: python3 -m flake8 .
- name: Run mypy
run: python3 -m mypy
test:
name: Unit Tests
strategy:
matrix:
python: [3.8, 3.12]
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- name: Checkout Code
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python }}
- name: Install
run: |
pip install -e '.[testing]'
sudo apt update
sudo apt install ffmpeg
- name: Run pytest (with coverage)
run: python3 -m coverage run -m pytest test/
- name: Display coverage report
run: python3 -m coverage report --omit=config*
- name: Add packages for gi (pygobject)
run: |
sudo apt install -y python3-gi python3-gi-cairo gir1.2-gtk-3.0 libgirepository1.0-dev build-essential