Skip to content

Commit 4823d78

Browse files
committed
update ci.yaml: test headless PyQt5
1 parent 872d1ab commit 4823d78

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

.github/workflows/ci.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,12 @@ jobs:
5151
run: |
5252
python -c "from pytissueoptics.rayscattering.opencl import OPENCL_OK; assert OPENCL_OK"
5353
54+
- name: Test headless PyQt5
55+
env:
56+
QT_QPA_PLATFORM: offscreen
57+
run: |
58+
python -c "from PyQt5.QtWidgets import QApplication, QLabel; app = QApplication([]); QLabel('Test');"
59+
5460
- name: Run tests
5561
env:
5662
QT_QPA_PLATFORM: offscreen

docker/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,12 @@ RUN apt-get update && \
2929
RUN python3 -m venv /opt/venv
3030
ENV PATH="/opt/venv/bin:$PATH"
3131

32-
RUN pip install --no-cache-dir --upgrade pip setuptools wheel
32+
RUN pip install --no-cache-dir --upgrade pip setuptools>=40.8.0 wheel pytest
3333

3434
WORKDIR /PyTissueOptics
3535
RUN git clone https://github.com/DCC-Lab/PyTissueOptics.git . && \
3636
git checkout jlb/setup-ci && \
37-
pip install --no-cache-dir -r requirements.txt
37+
pip install --no-cache-dir .
3838

3939
ENV QT_QPA_PLATFORM=offscreen
4040
ENV PTO_DEVICE_INDEX=0

0 commit comments

Comments
 (0)