Skip to content

Commit

Permalink
explicitly disable opencl/opengl tests
Browse files Browse the repository at this point in the history
  • Loading branch information
t20100 committed Sep 4, 2024
1 parent 7be45ba commit 001ccd6
Showing 1 changed file with 23 additions and 5 deletions.
28 changes: 23 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,32 +22,50 @@ jobs:
- os: ubuntu-20.04
python-version: "3.8"
QT_API: PyQt5
with_opencl: false
with_opengl: true
- os: ubuntu-latest
python-version: "3.11"
QT_API: PyQt6
with_opencl: true
with_opengl: true
- os: ubuntu-latest
python-version: "3.12"
QT_API: PySide6
with_opencl: true
with_opengl: true

- os: macos-13
python-version: "3.10"
QT_API: PyQt5
with_opencl: true
with_opengl: true
- os: macos-13
python-version: "3.12"
QT_API: PyQt6
with_opencl: true
with_opengl: true
- os: macos-13
python-version: "3.9"
QT_API: PySide6
with_opencl: true
with_opengl: true

- os: windows-latest
python-version: "3.9"
QT_API: PyQt5
with_opencl: false
with_opengl: false
- os: windows-latest
python-version: "3.12"
QT_API: PyQt6
with_opencl: false
with_opengl: false
- os: windows-latest
python-version: "3.10"
QT_API: PySide6
with_opencl: false
with_opengl: false

steps:
- uses: actions/checkout@v4
Expand All @@ -66,7 +84,7 @@ jobs:
sudo apt-get install ocl-icd-opencl-dev 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
- name: Setup Intel OpenCL ICD
if: runner.os == 'Linux'
if: runner.os == 'Linux' && ${{ matrix.with_opencl }}
run: |
wget -nv http://www.silx.org/pub/OpenCL/intel_opencl_icd-6.4.0.38.tar.gz -O - | tar -xzvf -
echo $(pwd)/intel_opencl_icd/icd/libintelocl.so > intel_opencl_icd/vendors/intel64.icd
Expand Down Expand Up @@ -103,11 +121,11 @@ jobs:
env:
QT_API: ${{ matrix.QT_API }}
SILX_TEST_LOW_MEM: "False"
SILX_OPENCL: ${{ matrix.with_opencl && 'True' || 'False' }}
WITH_GL_TEST: ${{ matrix.with_opengl && 'True' || 'False' }}

run: |
if [ ${{ runner.os }} == 'Windows' ]; then
export WITH_GL_TEST=False
fi
if [ ${{ runner.os }} == 'Linux' ]; then
if [ ${{ runner.os }} == 'Linux' && ${{ matrix.with_opencl }} ]; then
export OCL_ICD_VENDORS=$(pwd)/intel_opencl_icd/vendors
fi
python -c "import silx.test, sys; sys.exit(silx.test.run_tests(verbosity=1, args=['--qt-binding=${{ matrix.QT_API }}']));"

0 comments on commit 001ccd6

Please sign in to comment.