Merge branch 'main' of git.uni-due.de:cbm343e/doi2dataset
This commit is contained in:
commit
1a1eded67a
1 changed files with 23 additions and 17 deletions
|
@ -1,26 +1,28 @@
|
|||
# GitLab CI/CD pipeline for doi2dataset
|
||||
# Compatible with GitLab v18.1.1
|
||||
|
||||
# You can override the included template(s) by including variable overrides
|
||||
# SAST customization: https://docs.gitlab.com/ee/user/application_security/sast/#customizing-the-sast-settings
|
||||
# Secret Detection customization: https://docs.gitlab.com/user/application_security/secret_detection/pipeline/configure
|
||||
# Dependency Scanning customization: https://docs.gitlab.com/ee/user/application_security/dependency_scanning/#customizing-the-dependency-scanning-settings
|
||||
# Container Scanning customization: https://docs.gitlab.com/ee/user/application_security/container_scanning/#customizing-the-container-scanning-settings
|
||||
# Note that environment variables can be set in several places
|
||||
# See https://docs.gitlab.com/ee/ci/variables/#cicd-variable-precedence
|
||||
stages:
|
||||
- test
|
||||
|
||||
- test
|
||||
- secret-detection
|
||||
variables:
|
||||
PIP_CACHE_DIR: "$CI_PROJECT_DIR/.cache/pip"
|
||||
|
||||
cache:
|
||||
paths:
|
||||
- .cache/pip/
|
||||
- .venv/
|
||||
|
||||
- ".cache/pip/"
|
||||
- ".venv/"
|
||||
test:
|
||||
stage: test
|
||||
image: python:3
|
||||
before_script:
|
||||
- python -m pip install --upgrade pip
|
||||
- pip install -r requirements.txt
|
||||
- pip install -r requirements-dev.txt
|
||||
- python -m pip install --upgrade pip
|
||||
- pip install -r requirements.txt
|
||||
- pip install -r requirements-dev.txt
|
||||
script:
|
||||
- pytest
|
||||
- pytest
|
||||
artifacts:
|
||||
reports:
|
||||
junit: junit.xml
|
||||
|
@ -28,9 +30,13 @@ test:
|
|||
coverage_format: cobertura
|
||||
path: coverage.xml
|
||||
paths:
|
||||
- htmlcov/
|
||||
- htmlcov/
|
||||
expire_in: 1 week
|
||||
coverage: '/(?i)total.*? (100(?:\.0+)?\%|[1-9]?\d(?:\.\d+)?\%)$/'
|
||||
coverage: "/(?i)total.*? (100(?:\\.0+)?\\%|[1-9]?\\d(?:\\.\\d+)?\\%)$/"
|
||||
only:
|
||||
- branches
|
||||
- merge_requests
|
||||
- branches
|
||||
- merge_requests
|
||||
secret_detection:
|
||||
stage: secret-detection
|
||||
include:
|
||||
- template: Security/Secret-Detection.gitlab-ci.yml
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue