GitLab CI: Run unit tests as unprivileged user.
This commit is contained in:
parent
27c264278a
commit
1f0312fcbd
1 changed files with 1 additions and 1 deletions
|
@ -13,7 +13,7 @@ test:
|
||||||
- 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 wheel
|
||||||
- pip3 install -r requirements.txt
|
- pip3 install -r requirements.txt
|
||||||
- su - matemat python3-coverage run --branch -m unittest discover matemat
|
- su - matemat -c '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:
|
||||||
|
|
Loading…
Reference in a new issue