diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 7ab3f3d4ad9f5cd94a1b1eed146bcf2539829697..3ca7df62e670a278eac8d5c21f8b2a78c0ed2c56 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