mirror of
https://0xacab.org/jvoisin/mat2-web.git
synced 2025-02-23 16:49:59 -05:00
CI Fix
This commit is contained in:
parent
0698aec1cb
commit
e90391a271
@ -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:
|
||||
|
@ -1,4 +1,7 @@
|
||||
openapi-spec-validator==0.2.8
|
||||
types-Flask==1.1.0
|
||||
types-Jinja2==2.11.1
|
||||
types-PyYAML==0.1.7
|
||||
types-PyYAML==0.1.7
|
||||
wheel==0.40.0
|
||||
coverage==7.2.7
|
||||
Flask-Testing==0.8.1
|
Loading…
x
Reference in New Issue
Block a user