1
0
mirror of https://gitlab.com/fdroid/fdroidserver.git synced 2024-07-04 16:30:12 +02:00

gitlab-ci: use mypy from Debian/bullseye to prevent random breakage

mypy 0.901 was released and everything broke:
https://gitlab.com/linsui/fdroidserver/-/jobs/1330206567

My point is to reduce the number of false job fails like this one. We
have a lot of checkers running, I really think they need to prove they are
adding value before we invest any time maintaining them. mypy is still
"wait and see" in terms of the adding any value.

!951
This commit is contained in:
Hans-Christoph Steiner 2021-06-09 10:40:52 +02:00
parent bcd3e89614
commit ac86a2af89
No known key found for this signature in database
GPG Key ID: 3E177817BA1B9BFA

View File

@ -202,9 +202,16 @@ lint_format_safety_bandit_checks:
lint_mypy:
image: python:3.9-buster
image: debian:bullseye
<<: *apt-template
script:
- pip install mypy
- sed -i '/pyjks/d' setup.py # TODO get from backports once available
# use Debian packages to avoid building C/rust sources
- apt-get install
mypy
python3-cryptography
python3-pip
python3-wheel
- pip install -e .[test]
# exclude vendored file
- mypy --exclude fdroidserver/apksigcopier.py