forked from s3lph/matemat
Split CI pipeline into 2 stages, added mypy check.
This commit is contained in:
parent
82eb4f37f1
commit
4db168b750
2 changed files with 9 additions and 2 deletions
|
@ -1,18 +1,26 @@
|
||||||
---
|
---
|
||||||
image: debian:buster
|
image: debian:buster
|
||||||
|
|
||||||
|
stages:
|
||||||
|
- test
|
||||||
|
- codestyle
|
||||||
|
|
||||||
test:
|
test:
|
||||||
|
stage: test
|
||||||
script:
|
script:
|
||||||
- apt-get update -qy
|
- apt-get update -qy
|
||||||
- apt-get install -y --no-install-recommends python3-dev python3-pip python3-coverage python3-setuptools build-essential
|
- 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
|
- pip3 install -r requirements.txt
|
||||||
- python3-coverage run --branch -m unittest discover matemat
|
- python3-coverage run --branch -m unittest discover matemat
|
||||||
- python3-coverage report -m --include 'matemat/*' --omit '*/test_*.py'
|
- python3-coverage report -m --include 'matemat/*' --omit '*/test_*.py'
|
||||||
|
|
||||||
codestyle:
|
codestyle:
|
||||||
|
stage: codestyle
|
||||||
script:
|
script:
|
||||||
- apt-get update -qy
|
- apt-get update -qy
|
||||||
- apt-get install -y --no-install-recommends python3-dev python3-pip python3-coverage python3-setuptools build-essential
|
- 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
|
- pip3 install -r requirements.txt
|
||||||
- pip3 install pycodestyle
|
|
||||||
- pycodestyle matemat
|
- pycodestyle matemat
|
||||||
|
- mypy matemat
|
||||||
|
|
|
@ -1,3 +1,2 @@
|
||||||
wheel
|
|
||||||
bcrypt
|
bcrypt
|
||||||
apsw
|
apsw
|
||||||
|
|
Loading…
Reference in a new issue