28 lines
827 B
YAML
28 lines
827 B
YAML
---
|
|
image: debian:buster
|
|
|
|
stages:
|
|
- test
|
|
- codestyle
|
|
|
|
test:
|
|
stage: test
|
|
script:
|
|
- useradd matemat
|
|
- chmod g+r -R .
|
|
- apt-get update -qy
|
|
- apt-get install -y --no-install-recommends python3-dev python3-pip python3-coverage python3-setuptools build-essential
|
|
- pip3 install wheel
|
|
- pip3 install -r requirements.txt
|
|
- su - matemat -c 'python3-coverage run --branch -m unittest discover matemat'
|
|
- python3-coverage report -m --include 'matemat/*' --omit '*/test_*.py'
|
|
|
|
codestyle:
|
|
stage: codestyle
|
|
script:
|
|
- apt-get update -qy
|
|
- apt-get install -y --no-install-recommends python3-dev python3-pip python3-coverage python3-setuptools build-essential
|
|
- pip3 install wheel pycodestyle mypy
|
|
- pip3 install -r requirements.txt
|
|
- pycodestyle matemat
|
|
# - mypy --ignore-missing-imports --strict -p matemat
|