Skip to content
Snippets Groups Projects
Commit 4f460270 authored by Oscar Gustafsson's avatar Oscar Gustafsson :bicyclist:
Browse files

Prepare for testing the QT parts

parent 8f668a80
No related branches found
No related tags found
No related merge requests found
Pipeline #72139 failed
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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment