-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.gitlab-ci.yml
38 lines (35 loc) · 1005 Bytes
/
.gitlab-ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
image: docker:latest
variables:
REGISTRY: $CI_REGISTRY
PROJECT_PATH: none
DOCKER_DRIVER: overlay2
# SELECT ONE OF INTERNAL,EXTERNAL
CI_DEPLOY_NETWORK: INTERNAL
CI_DEPLOY_TAG: none
# SELECT ONE OF public,private
CI_PUBLISH: public
# hotfix for https://gitlab.com/gitlab-org/gitlab-ce/issues/64959
DOCKER_TLS_CERTDIR: ""
stages:
- test
pytest:
stage: test
image: python:3.8.12
before_script:
- pip install -U pip poetry pytest
- poetry config virtualenvs.create false
- poetry install
script:
- echo $CONTAINER_IMAGE
- python3 -m pytest --cov=fundamentals --cov-report term --junitxml=report.xml
- coverage xml
tags:
- docker
coverage: /(?i)total.*? (100(?:\.0+)?\%|[1-9]?\d(?:\.\d+)?\%)$/
artifacts:
when: always
reports:
junit: report.xml
coverage_report:
coverage_format: cobertura
path: coverage.xml