Skip to content

HorizontalSliderWithBrowser: slider with play button #1697

HorizontalSliderWithBrowser: slider with play button

HorizontalSliderWithBrowser: slider with play button #1697

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
workflow_dispatch:
defaults:
run:
shell: bash
jobs:
# This workflow contains a single job called "build"
build:
name: "Python ${{ matrix.python-version }} on ${{ matrix.os }} ${{ matrix.QT_API }}"
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
include:
- os: ubuntu-20.04
python-version: "3.8"
QT_API: PyQt5
- os: ubuntu-latest
python-version: "3.11"
QT_API: PyQt6
- os: ubuntu-latest
python-version: "3.12"
QT_API: PySide6
- os: macos-13
python-version: "3.10"
QT_API: PyQt5
- os: macos-13
python-version: "3.12"
QT_API: PyQt6
- os: macos-13
python-version: "3.9"
QT_API: PySide6
- os: windows-latest
python-version: "3.9"
QT_API: PyQt5
- os: windows-latest
python-version: "3.12"
QT_API: PyQt6
- os: windows-latest
python-version: "3.10"
QT_API: PySide6
steps:
- uses: actions/checkout@v4
# Install packages:
# OpenCL lib and icd
# xvfb to run the GUI test headless
# libegl1-mesa: Required by Qt xcb platform plugin
# libgl1-mesa-glx: For OpenGL
# xserver-xorg-video-dummy: For OpenGL
# libxkbcommon-x11-0, ..: needed for Qt plugins
- name: Install system packages
if: runner.os == 'Linux'
run: |
sudo apt-get update
sudo apt-get install ocl-icd-opencl-dev intel-opencl-icd xvfb libegl1-mesa libgl1-mesa-glx xserver-xorg-video-dummy libxkbcommon-x11-0 libxkbcommon0 libxkbcommon-dev libxcb-icccm4 libxcb-image0 libxcb-shm0 libxcb-keysyms1 libxcb-randr0 libxcb-render-util0 libxcb-render0 libxcb-shape0 libxcb-sync1 libxcb-xfixes0 libxcb-xinerama0 libxcb-xkb1 libxcb-cursor0 libxcb1
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: "pip"
- name: Install build dependencies
run: |
pip install --upgrade --pre build cython setuptools wheel
pip list
- name: Build
env:
MACOSX_DEPLOYMENT_TARGET: "10.9"
run: |
python -m build --no-isolation
ls dist
- name: Install
run: |
pip install -r ci/requirements-pinned.txt
pip install --pre "${{ matrix.QT_API }}"
pip install --pre "$(ls dist/silx*.whl)[full,test]"
python ./ci/info_platform.py
pip list
- name: Test
env:
QT_API: ${{ matrix.QT_API }}
SILX_TEST_LOW_MEM: "False"
run: |
if [ ${{ runner.os }} == 'Windows' ]; then
export WITH_GL_TEST=False
fi
python -c "import silx.test, sys; sys.exit(silx.test.run_tests(verbosity=1, args=['--qt-binding=${{ matrix.QT_API }}']));"