From 4f46027060b078cdc360e567701b6362d1781055 Mon Sep 17 00:00:00 2001 From: Oscar Gustafsson <oscar.gustafsson@gmail.com> Date: Tue, 21 Jun 2022 17:33:48 +0200 Subject: [PATCH] Prepare for testing the QT parts --- .gitlab-ci.yml | 40 ++++++++++++++++++++++++++++++---------- 1 file changed, 30 insertions(+), 10 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 7ab3f3d4..3ca7df62 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,19 +1,17 @@ stages: - test - -before_script: - - apt-get update --yes - - apt-get install --yes build-essential cmake libfmt-dev pybind11-dev - - apt-get install --yes xvfb qt5-default - - python -m pip install --upgrade pip - - python --version - - pip install pytest pytest-cov pytest-xvfb pytest-qt - - pip install . - - pip show b_asic + - test-gui .run-test: stage: test script: + - apt-get update --yes + - apt-get install --yes build-essential cmake libfmt-dev pybind11-dev + - python -m pip install --upgrade pip + - python --version + - pip install pytest pytest-cov + - pip install . + - pip show b_asic - pytest --cov=b_asic --cov-report xml:cov.xml --cov-report term test artifacts: reports: @@ -40,3 +38,25 @@ run-test-3.9: run-test-3.10: image: python:3.10 extends: ".run-test" + +run-test-qt: + image: ubuntu-latest + script: + - apt-get install --yes xvfb qt5-default + - pip install pytest-xvfb pytest-qt + +run-gui-test: + image: ubuntu-latest + stage: test-gui + script: + - apt-get update --yes + - apt-get install --yes build-essential cmake libfmt-dev pybind11-dev \ + xvfb + - apt-get install --yes python3 python3-pip + - apt-get install --yes python3-pyqt5 + - python -m pip install --upgrade pip + - python --version + - pip install pytest pytest-cov pytest-xvfb pytest-qt + - pip install . + - pip show b_asic + - pytest --cov=b_asic --cov-report xml:cov.xml --cov-report term test -- GitLab