Force python3.9 instead of being implicit
This commit is contained in:
parent
77b6e4b326
commit
30d284a406
@ -4,7 +4,7 @@ default:
|
||||
- apk add build-base
|
||||
- apk add --no-cache postgresql-libs
|
||||
- apk add --no-cache --virtual .build-deps gcc musl-dev postgresql-dev
|
||||
- python3 -m pip install -r requirements.txt
|
||||
- python3.9 -m pip install -r requirements.txt
|
||||
- apk --purge del .build-deps
|
||||
|
||||
stages: # List of stages for jobs, and their order of execution
|
||||
@ -23,10 +23,10 @@ stages: # List of stages for jobs, and their order of execution
|
||||
pylint:
|
||||
stage: Test
|
||||
before_script:
|
||||
- python3 -m pip install pylint pylint-exit anybadge
|
||||
- python3.9 -m pip install pylint pylint-exit anybadge
|
||||
script:
|
||||
- mkdir ./pylint
|
||||
- python3 -m pylint --output-format=text asyncdb | tee ./pylint/pylint.log || pylint-exit "${?}"
|
||||
- python3.9 -m pylint --output-format=text asyncdb | tee ./pylint/pylint.log || pylint-exit "${?}"
|
||||
- PYLINT_SCORE=$(sed -n 's/^Your code has been rated at \([-0-9.]*\)\/.*/\1/p' ./pylint/pylint.log)
|
||||
- anybadge --label=Pylint --file=pylint/pylint.svg --value=$PYLINT_SCORE 2=red 4=orange 8=yellow 10=green
|
||||
- echo "Pylint score is "${PYLINT_SCORE}"
|
||||
|
Loading…
Reference in New Issue
Block a user