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

Prepare for testing the QT parts

parent 050c7126
No related branches found
No related tags found
No related merge requests found
Pipeline #72141 failed
stages: stages:
- test - test
- test-gui
.run-test: before-script:
stage: test
script:
- apt-get update --yes - apt-get update --yes
- apt-get install --yes build-essential cmake libfmt-dev pybind11-dev - apt-get install --yes build-essential cmake libfmt-dev pybind11-dev
- python -m pip install --upgrade pip - python -m pip install --upgrade pip
...@@ -12,6 +9,10 @@ stages: ...@@ -12,6 +9,10 @@ stages:
- pip install pytest pytest-cov - pip install pytest pytest-cov
- pip install . - pip install .
- pip show b_asic - pip show b_asic
.run-test:
stage: test
script:
- pytest --cov=b_asic --cov-report xml:cov.xml --cov-report term test - pytest --cov=b_asic --cov-report xml:cov.xml --cov-report term test
artifacts: artifacts:
reports: reports:
...@@ -39,18 +40,15 @@ run-test-3.10: ...@@ -39,18 +40,15 @@ run-test-3.10:
image: python:3.10 image: python:3.10
extends: ".run-test" extends: ".run-test"
run-gui-test: run-test-qt:
image: ubuntu-latest image: python:3.10
stage: test-gui stage: test
script: script:
- apt-get update --yes - apt-get install --yes xvfb python3-pyqt5
- apt-get install --yes build-essential cmake libfmt-dev pybind11-dev \ - pip install pytest-xvfb pytest-qt
xvfb - pytest --cov=b_asic --cov-report xml:cov.xml --cov-report term test
- apt-get install --yes python3 python3-pip artifacts:
- apt-get install --yes python3-pyqt5 reports:
- python -m pip install --upgrade pip coverage_report:
- python --version coverage_format: cobertura
- pip install pytest pytest-cov pytest-xvfb pytest-qt path: cov.xml
- 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