1
0
Fork 0
forked from s3lph/matemat
matemat/.gitlab-ci.yml
s3lph 5b231a0d40 Temporarily disabled mypy, as it doesn't seem to work properly on some occasions:
- native libs (apsw, ...)
- some Union types
- unittest.TestCase.assertRaises with custom exceptions
2018-06-06 13:24:36 +02:00

26 lines
770 B
YAML

---
image: debian:buster
stages:
- test
- codestyle
test:
stage: test
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
- pip3 install -r requirements.txt
- 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