From 0b60b2e6b4a01b9eb68dfcc0184d76b66cb785ae Mon Sep 17 00:00:00 2001 From: Kunal Mehta Date: Thu, 12 Oct 2023 19:33:26 -0400 Subject: [PATCH] Migrate updater-gui-tests job to GitHub Actions --- .github/workflows/ci.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c4cb5bf2e99..ffa8d88900f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -44,3 +44,21 @@ jobs: make rust-lint make rust-test + updater-gui-tests: + runs-on: ubuntu-latest + container: debian:bullseye + steps: + - name: Install dependencies + run: | + apt-get update && apt-get install --yes git libqt5designer5 python3-venv + - uses: actions/checkout@v3 + - name: Install Python dependencies + run: | + cd journalist_gui + python3 -m venv .venv/ && source .venv/bin/activate + pip install --require-hashes -r dev-requirements.txt + - name: Run tests + run: | + cd journalist_gui + source .venv/bin/activate + QT_QPA_PLATFORM=offscreen python3 test_gui.py -v