Skip to content

Commit 94a4d04

Browse files
committed
Add Qt/OpenGL deps to CI and restrict Codecov
Install Qt/OpenGL runtime dependencies on Ubuntu CI runners (libegl1, libgl1, libopengl0, libxkbcommon-x11-0, libxcb-cursor0) so tests that require OpenGL/Qt can run in the workflow. Also restrict the Codecov upload step to push events on refs/heads/main to avoid uploading coverage for other event types or branches.
1 parent d8da888 commit 94a4d04

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

.github/workflows/testing-ci.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,17 @@ jobs:
3838
python -m pip install -U pip wheel
3939
python -m pip install -U tox tox-gh-actions
4040
41+
- name: Install Qt/OpenGL runtime deps (Ubuntu)
42+
if: startsWith(matrix.os, 'ubuntu')
43+
run: |
44+
sudo apt-get update
45+
sudo apt-get install -y \
46+
libegl1 \
47+
libgl1 \
48+
libopengl0 \
49+
libxkbcommon-x11-0 \
50+
libxcb-cursor0
51+
4152
- name: Run tests (exclude hardware) with coverage via tox
4253
run: |
4354
tox -q
@@ -54,6 +65,7 @@ jobs:
5465
echo '```' >> "$GITHUB_STEP_SUMMARY"
5566
5667
- name: Upload coverage to Codecov
68+
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
5769
uses: codecov/codecov-action@v5
5870
with:
5971
files: ./coverage.xml

0 commit comments

Comments
 (0)