From 598369834313c82a8ce2495f0f4d101cdbca66fa Mon Sep 17 00:00:00 2001 From: Geoffrey Bolmier Date: Tue, 21 May 2024 00:28:51 -0400 Subject: [PATCH] Install Qt dependencies in the CI environment --- .github/workflows/unit-tests.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/unit-tests.yml b/.github/workflows/unit-tests.yml index f9cb3eb7f5..2c27fba81c 100644 --- a/.github/workflows/unit-tests.yml +++ b/.github/workflows/unit-tests.yml @@ -14,6 +14,8 @@ jobs: matrix: os: [ubuntu-latest] python-version: ["3.12", "3.11", "3.10"] + env: + DISPLAY: ':99.0' runs-on: ${{ matrix.os }} @@ -42,6 +44,11 @@ jobs: poetry run python -c "from river import datasets; datasets.CreditCard().download(); datasets.Elec2().download(); datasets.SMSSpam().download()" poetry run python -c "from river import bandit; bandit.datasets.NewsArticles().download()" + - uses: tlambert03/setup-qt-libs@v1 + - name: build "display" + run: | + /sbin/start-stop-daemon --start --quiet --pidfile /tmp/custom_xvfb_99.pid --make-pidfile --background --exec /usr/bin/Xvfb -- :99 -screen 0 1920x1200x24 -ac +extension GLX + - name: pytest run: | poetry run pytest