updater/.gitlab-ci.yml

41 lines
814 B
YAML
Raw Normal View History

2022-02-19 23:06:53 +01:00
stages:
- test
test:mipy:
stage: test
tags:
- linux
image: python:3.7
interruptible: true
script:
2022-02-19 23:11:04 +01:00
- 'pip install --upgrade mypy pytest types-requests'
2022-02-19 23:06:53 +01:00
- 'pip install --upgrade -r requirements.txt'
- 'mypy updater'
only:
- branches@manuelcortez/updater
- release
- tags
- schedules
test:pytest:
stage: test
tags:
- linux
image: python:3.8
interruptible: true
script:
- 'pip install --upgrade pytest coverage'
- 'pip install --upgrade -r requirements.txt'
2022-02-19 23:12:50 +01:00
- 'coverage run --source . -m pytest --junitxml=report.xml'
2022-02-19 23:06:53 +01:00
- 'coverage report'
- 'coverage xml'
only:
- branches@manuelcortez/updater
- release
- tags
- schedules
artifacts:
when: always
reports:
junit: report.xml
cobertura: coverage.xml