Testing with Pylint HTML reports
This commit is contained in:
parent
60640ae9a4
commit
1cb4420353
1 changed files with 15 additions and 1 deletions
|
@ -1,5 +1,6 @@
|
|||
stages:
|
||||
- quality assurance
|
||||
- deploy
|
||||
|
||||
.init_venv: &init_venv
|
||||
- python -m venv .venv
|
||||
|
@ -15,7 +16,7 @@ backend-pylint:
|
|||
stage: quality assurance
|
||||
image: python:3.11.4-buster
|
||||
before_script:
|
||||
- mkdir -p public/lint
|
||||
- mkdir -p public
|
||||
- cd backend
|
||||
- *init_venv
|
||||
- *install_requirements
|
||||
|
@ -23,9 +24,22 @@ backend-pylint:
|
|||
- pylint --version
|
||||
script:
|
||||
- pylint src/* --exit-zero --output-format=pylint_gitlab.GitlabCodeClimateReporter > ../codeclimate.json
|
||||
- pylint src/* --exit-zero --output-format=pylint_gitlab.GitlabPagesHtmlReporter > ../public/index.html
|
||||
artifacts:
|
||||
paths:
|
||||
- public
|
||||
reports:
|
||||
codequality: codeclimate.json
|
||||
when: always
|
||||
|
||||
pages:
|
||||
stage: deploy
|
||||
image: alpine:latest
|
||||
script:
|
||||
- echo "Deployed!"
|
||||
artifacts:
|
||||
paths:
|
||||
- public
|
||||
only:
|
||||
refs:
|
||||
- main
|
||||
|
|
Loading…
Reference in a new issue