Skip to content

Commit 2bc6112

Browse files
committed
Fix github workflow test for PyQt6
1 parent 98021e9 commit 2bc6112

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

.github/workflows/tests.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,17 @@ jobs:
1414
with:
1515
python-version: 3.12
1616
- uses: abatilo/actions-poetry@v2
17-
- name: Install
17+
- name: Install PyQt requirements (xcb on Linux)
18+
if: runner.os == 'Linux'
19+
# Fix from: https://pytest-qt.readthedocs.io/en/latest/troubleshooting.html#github-actions-azure-pipelines-travis-ci-and-gitlab-ci-cd
20+
uses: awalsh128/cache-apt-pkgs-action@v1
21+
with:
22+
packages: libxkbcommon-x11-0 libxcb-icccm4 libxcb-image0 libxcb-keysyms1 libxcb-randr0 libxcb-render-util0 libxcb-xinerama0 libxcb-xfixes0 x11-utils libgl1 libegl1 libdbus-1-3
23+
- name: Install dependencies
1824
run: |
1925
cd basic_games
2026
poetry --no-root install
21-
- name: Test
27+
- name: Run tests
2228
run: |
2329
cd basic_games
2430
poetry run poe test

0 commit comments

Comments
 (0)