From e90391a271d9f06e16c877ee5f0542f1e68c8263 Mon Sep 17 00:00:00 2001 From: jfriedli Date: Tue, 13 Jun 2023 18:52:43 +0000 Subject: CI Fix --- .gitlab-ci.yml | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) (limited to '.gitlab-ci.yml') diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 5ab79ea..11a6e66 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -17,9 +17,11 @@ mypy: stage: linting script: - apt-get -qqy update - - apt-get -qqy install --no-install-recommends python3-pip - - pip3 install mypy - - pip3 install -r requirements-test.txt + - apt-get -qqy install --no-install-recommends python3-venv python3-pip + - python3 -m venv .venv + - source .venv/bin/activate + - pip install mypy + - pip install -r requirements-test.txt - mypy --ignore-missing-imports --explicit-package-bases matweb main.py bandit: @@ -35,12 +37,14 @@ tests:debian: - apt update script: - apt-get -qqy update - - apt-get -qqy install --no-install-recommends mat2 python3-flask python3-coverage python3-pip python3-setuptools - - pip3 install wheel + - apt-get -qqy install --no-install-recommends build-essential libgirepository1.0-dev mat2 python3-venv python3-dev python3-pip python3-setuptools libcairo2-dev pkg-config + - python3 -m venv .venv + - source .venv/bin/activate - pip3 install -r requirements.txt -r requirements-test.txt - - python3-coverage run --branch --include main.py,matweb/*.py -m unittest discover -s test - - python3-coverage report -m - - python3-coverage xml + - coverage run --branch --include main.py,matweb/*.py -m unittest discover -s test + - coverage report -m + - coverage xml + coverage: '/TOTAL.*(\d\d%)/' artifacts: reports: coverage_report: -- cgit v1.3