test coverage
This commit is contained in:
@@ -35,6 +35,30 @@ unittest:
|
|||||||
script:
|
script:
|
||||||
- pytest -v
|
- pytest -v
|
||||||
|
|
||||||
|
coverage:
|
||||||
|
stage: 'code_quality'
|
||||||
|
needs: [ 'gemnasium-python-dependency_scanning', 'semgrep-sast', 'kics-iac-sast' ]
|
||||||
|
image:
|
||||||
|
name: jetbrains/qodana-python-community
|
||||||
|
entrypoint:
|
||||||
|
- ''
|
||||||
|
cache:
|
||||||
|
- key: qodana-2023.3-$CI_DEFAULT_BRANCH-$CI_COMMIT_REF_SLUG
|
||||||
|
fallback_keys:
|
||||||
|
- qodana-2023.3-$CI_DEFAULT_BRANCH-
|
||||||
|
- qodana-2023.3-
|
||||||
|
paths:
|
||||||
|
- ".qodana/cache"
|
||||||
|
variables:
|
||||||
|
QODANA_TOKEN: "$qodana_token"
|
||||||
|
script:
|
||||||
|
- qodana --save-report --results-dir=$CI_PROJECT_DIR/.qodana/results --cache-dir=$CI_PROJECT_DIR/.qodana/cache --coverage-dir=$CI_PROJECT_DIR/coverage
|
||||||
|
artifacts:
|
||||||
|
expose_as: 'Coverage'
|
||||||
|
expire_in: 1 week
|
||||||
|
paths:
|
||||||
|
- ".qodana/coverage/"
|
||||||
|
|
||||||
qodana:
|
qodana:
|
||||||
stage: 'code_quality'
|
stage: 'code_quality'
|
||||||
needs: ['gemnasium-python-dependency_scanning', 'semgrep-sast', 'kics-iac-sast']
|
needs: ['gemnasium-python-dependency_scanning', 'semgrep-sast', 'kics-iac-sast']
|
||||||
@@ -54,7 +78,7 @@ qodana:
|
|||||||
script:
|
script:
|
||||||
- qodana --save-report --results-dir=$CI_PROJECT_DIR/.qodana/results --cache-dir=$CI_PROJECT_DIR/.qodana/cache
|
- qodana --save-report --results-dir=$CI_PROJECT_DIR/.qodana/results --cache-dir=$CI_PROJECT_DIR/.qodana/cache
|
||||||
artifacts:
|
artifacts:
|
||||||
expose_as: qodana_report
|
expose_as: 'Qodana report'
|
||||||
expire_in: 1 week
|
expire_in: 1 week
|
||||||
paths:
|
paths:
|
||||||
- ".qodana/results/"
|
- ".qodana/results/"
|
||||||
|
|||||||
Reference in New Issue
Block a user