Updated CI with anchors
This commit is contained in:
parent
11d4a866ef
commit
61d50cd13c
1 changed files with 14 additions and 7 deletions
|
@ -1,17 +1,24 @@
|
||||||
stages:
|
stages:
|
||||||
- quality assurance
|
- quality assurance
|
||||||
|
|
||||||
|
.init_venv: &init_venv
|
||||||
|
- python -m venv .venv
|
||||||
|
- source .venv/bin/activate
|
||||||
|
- python --version
|
||||||
|
- echo "venv '$VIRTUAL_ENV'"
|
||||||
|
|
||||||
|
.install_requirements: &install_requirements
|
||||||
|
- pip install -r requirements.txt --disable-pip-version-check -q
|
||||||
|
- python -m pip list --format=columns --disable-pip-version-check
|
||||||
|
|
||||||
backend-pylint:
|
backend-pylint:
|
||||||
stage: quality assurance
|
stage: quality assurance
|
||||||
image: python:3.11.4-buster
|
image: python:3.11.4-buster
|
||||||
before_script:
|
before_script:
|
||||||
- cd backend
|
- cd backend
|
||||||
- python -m venv .venv
|
- *init_venv
|
||||||
- source .venv/bin/activate
|
- *install_requirements
|
||||||
- echo "venv '$VIRTUAL_ENV'"
|
|
||||||
- pip install -r requirements.txt --disable-pip-version-check -q
|
|
||||||
- pip install pylint --disable-pip-version-check -q
|
- pip install pylint --disable-pip-version-check -q
|
||||||
- python --version
|
- pylint --version
|
||||||
- python -m pip list --format=columns --disable-pip-version-check
|
|
||||||
script:
|
script:
|
||||||
- pylint src/* --fail-under 9
|
- pylint src/* --fail-under 9
|
||||||
|
|
Loading…
Reference in a new issue