Skip to content

Commit 785880c

Browse files
authored
Backport PR pandas-dev#59423: CI: Install libegl explicitly for pytest-qt on ubuntu (pandas-dev#59424)
1 parent f656d52 commit 785880c

File tree

4 files changed

+12
-2
lines changed

4 files changed

+12
-2
lines changed

.circleci/config.yml

+1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ jobs:
1717
- run: >
1818
PATH=$HOME/miniconda3/envs/pandas-dev/bin:$HOME/miniconda3/condabin:$PATH
1919
LD_PRELOAD=$HOME/miniconda3/envs/pandas-dev/lib/libgomp.so.1:$LD_PRELOAD
20+
sudo apt-get update && sudo apt-get install -y libegl1 libopengl0
2021
ci/run_tests.sh
2122
linux-musl:
2223
docker:

.github/workflows/code-checks.yml

+5
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,11 @@ jobs:
5151
# TODO: The doctests have to be run first right now, since the Cython doctests only work
5252
# with pandas installed in non-editable mode
5353
# This can be removed once pytest-cython doesn't require C extensions to be installed inplace
54+
55+
- name: Extra installs
56+
# https://pytest-qt.readthedocs.io/en/latest/troubleshooting.html#github-actions-azure-pipelines-travis-ci-and-gitlab-ci-cd
57+
run: sudo apt-get update && sudo apt-get install -y libegl1 libopengl0
58+
5459
- name: Run doctests
5560
run: cd ci && ./code_checks.sh doctests
5661
if: ${{ steps.build.outcome == 'success' && always() }}

.github/workflows/docbuild-and-upload.yml

+4
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,10 @@ jobs:
4646
- name: Build Pandas
4747
uses: ./.github/actions/build_pandas
4848

49+
- name: Extra installs
50+
# https://pytest-qt.readthedocs.io/en/latest/troubleshooting.html#github-actions-azure-pipelines-travis-ci-and-gitlab-ci-cd
51+
run: sudo apt-get update && sudo apt-get install -y libegl1 libopengl0
52+
4953
- name: Test website
5054
run: python -m pytest web/
5155

.github/workflows/unit-tests.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -159,8 +159,8 @@ jobs:
159159
fetch-depth: 0
160160

161161
- name: Extra installs
162-
run: sudo apt-get update && sudo apt-get install -y ${{ matrix.extra_apt }}
163-
if: ${{ matrix.extra_apt }}
162+
# https://pytest-qt.readthedocs.io/en/latest/troubleshooting.html#github-actions-azure-pipelines-travis-ci-and-gitlab-ci-cd
163+
run: sudo apt-get update && sudo apt-get install -y libegl1 libopengl0 ${{ matrix.extra_apt || ''}}
164164

165165
- name: Generate extra locales
166166
# These extra locales will be available for locale.setlocale() calls in tests

0 commit comments

Comments
 (0)