From 9a1fd099b521148e7bf4991bbf03bd98a1353c73 Mon Sep 17 00:00:00 2001 From: Jonathan Neuhauser Date: Fri, 4 Feb 2022 22:26:52 +0100 Subject: [PATCH] add pylint badge to CI --- .gitlab-ci.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index dcf671f0..c2d5d1d8 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -59,12 +59,12 @@ test:python39: test:python38-windows: stage: test - extends: + extends: - .shared-windows-runners - .tests script: - choco install python --version 3.8.3 -y -f --no-progress - - $env:PATH += ";C:\\PYTHON38\\;C:\\PYTHON38\\Scripts" + - $env:PATH += ";C:\\PYTHON38\\;C:\\PYTHON38\\Scripts" - refreshenv - "python -m pip install --upgrade setuptools" - "python -m pip install --upgrade tox" @@ -94,6 +94,9 @@ test:coverage: - pyenv shell 3.6.8 - pip install pylint==2.5.3 - python3 tests/add_pylint.py htmlcov/index.html + - pip install anybadge + - pylintscore=$(grep -Eo "[0-9]+.[0-9]+" htmlcov/index.html | grep -Eo "[0-9]+.[0-9]+") + - anybadge -l pylint -v $pylintscore -f htmlcov/pylint.svg 6=red 8=orange 9=yellow 10=green dependencies: - test:python37 - test:python38 -- GitLab