Skip to content

Commit f38222a

Browse files
committed
build: setup headless CI with pyvista action
1 parent d0acfc7 commit f38222a

File tree

1 file changed

+7
-13
lines changed

1 file changed

+7
-13
lines changed

.github/workflows/ci.yaml

Lines changed: 7 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -13,27 +13,21 @@ jobs:
1313
- name: Checkout code
1414
uses: actions/checkout@v4
1515

16-
- name: Set up Python ${{ matrix.python-version }}
17-
uses: actions/setup-python@v5
16+
- name: Install Linux packages for Qt5/Qt6 support and start Xvfb
17+
uses: pyvista/setup-headless-display-action@v3
1818
with:
19-
python-version: ${{ matrix.python-version }}
19+
qt: true
2020

2121
- name: Install OpenCL dependencies
2222
run: |
2323
sudo apt-get update
2424
sudo apt-get install -y pocl-opencl-icd ocl-icd-opencl-dev gcc clinfo
2525
clinfo
2626
27-
- name: Install OpenGL, EGL, and OSMesa
28-
run: |
29-
sudo apt-get update
30-
sudo apt-get install -y \
31-
libegl1-mesa-dev \
32-
libosmesa6-dev \
33-
libgl1-mesa-dev \
34-
libglu1-mesa-dev \
35-
freeglut3-dev \
36-
xvfb
27+
- name: Set up Python ${{ matrix.python-version }}
28+
uses: actions/setup-python@v5
29+
with:
30+
python-version: ${{ matrix.python-version }}
3731

3832
- name: Install tox
3933
run: pip install tox

0 commit comments

Comments
 (0)