mirror of
https://0xacab.org/jvoisin/mat2-web.git
synced 2025-02-24 09:09:58 -05:00
CI Fix
This commit is contained in:
parent
0698aec1cb
commit
e90391a271
@ -17,9 +17,11 @@ mypy:
|
|||||||
stage: linting
|
stage: linting
|
||||||
script:
|
script:
|
||||||
- apt-get -qqy update
|
- apt-get -qqy update
|
||||||
- apt-get -qqy install --no-install-recommends python3-pip
|
- apt-get -qqy install --no-install-recommends python3-venv python3-pip
|
||||||
- pip3 install mypy
|
- python3 -m venv .venv
|
||||||
- pip3 install -r requirements-test.txt
|
- source .venv/bin/activate
|
||||||
|
- pip install mypy
|
||||||
|
- pip install -r requirements-test.txt
|
||||||
- mypy --ignore-missing-imports --explicit-package-bases matweb main.py
|
- mypy --ignore-missing-imports --explicit-package-bases matweb main.py
|
||||||
|
|
||||||
bandit:
|
bandit:
|
||||||
@ -35,12 +37,14 @@ tests:debian:
|
|||||||
- apt update
|
- apt update
|
||||||
script:
|
script:
|
||||||
- apt-get -qqy update
|
- apt-get -qqy update
|
||||||
- apt-get -qqy install --no-install-recommends mat2 python3-flask python3-coverage python3-pip python3-setuptools
|
- 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
|
||||||
- pip3 install wheel
|
- python3 -m venv .venv
|
||||||
|
- source .venv/bin/activate
|
||||||
- pip3 install -r requirements.txt -r requirements-test.txt
|
- pip3 install -r requirements.txt -r requirements-test.txt
|
||||||
- python3-coverage run --branch --include main.py,matweb/*.py -m unittest discover -s test
|
- coverage run --branch --include main.py,matweb/*.py -m unittest discover -s test
|
||||||
- python3-coverage report -m
|
- coverage report -m
|
||||||
- python3-coverage xml
|
- coverage xml
|
||||||
|
coverage: '/TOTAL.*(\d\d%)/'
|
||||||
artifacts:
|
artifacts:
|
||||||
reports:
|
reports:
|
||||||
coverage_report:
|
coverage_report:
|
||||||
|
@ -2,3 +2,6 @@ openapi-spec-validator==0.2.8
|
|||||||
types-Flask==1.1.0
|
types-Flask==1.1.0
|
||||||
types-Jinja2==2.11.1
|
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