updater/.gitlab-ci.yml

59 lines
1.1 KiB
YAML
Raw Normal View History

2022-02-19 23:06:53 +01:00
stages:
- test
- doc
2022-02-19 23:06:53 +01:00
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:
2022-02-19 23:15:20 +01:00
- 'pip install --upgrade pytest coverage requests_mock'
2022-02-19 23:06:53 +01:00
- 'pip install --upgrade -r requirements.txt'
- 'coverage run --source . --omit conf.py -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
pages:
image: python:latest
tags:
- docker
interruptible: true
only:
2022-02-19 23:23:54 +01:00
- main
stage: doc
script:
- 'pip install --upgrade sphinx'
- 'make html'
- 'mv -f _build/html public'
artifacts:
expire_in: 1 day
paths:
- public