Skip to content

Merge pull request #14 from AlessandriniAntoine/feature/add-demux-block #7

Merge pull request #14 from AlessandriniAntoine/feature/add-demux-block

Merge pull request #14 from AlessandriniAntoine/feature/add-demux-block #7

Workflow file for this run

name: Python Tests
on:
push:
branches: [main]
pull_request:
branches: [main]
concurrency:
group: pr-${{ github.ref }}
cancel-in-progress: true
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: ['3.10', '3.11']
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'
- name: Install system dependencies (Linux)
if: runner.os == 'Linux'
run: |
sudo apt-get update
sudo apt-get install -y libgl1 libglx-mesa0 libegl1 libx11-6
- name: Set QT environment for headless
run: echo "QT_QPA_PLATFORM=offscreen" >> $GITHUB_ENV
- name: Install project
run: python -m pip install .
- name: Install test dependencies
run: python -m pip install pytest pytest-qt
- name: Run tests
run: pytest -v --tb=short