backup-tool/.woodpecker.yml

32 lines
733 B
YAML
Raw Normal View History

2021-05-15 16:21:48 +02:00
matrix:
PYTHON_VERSION:
- 3.6
- 3.7
- 3.8
- 3.9
2021-04-24 22:22:12 +02:00
2021-05-15 16:21:48 +02:00
pipeline:
test:
2021-04-24 22:27:03 +02:00
group: test
2021-05-15 16:21:48 +02:00
image: python:${PYTHON_VERSION}-alpine
2021-04-24 22:22:12 +02:00
pull: true
commands:
2021-05-15 16:21:48 +02:00
- pip install -e .[test]
- pytest --cov=app --cov-fail-under=90 tests/
2021-04-24 22:22:12 +02:00
2021-05-15 16:21:48 +02:00
test-pypy:
2021-04-28 16:09:44 +02:00
group: test
image: pypy:3-7-slim
pull: true
commands:
2021-05-15 16:21:48 +02:00
- pip install -e .[test]
- pytest --cov=app --cov-fail-under=90 tests/
2021-04-24 22:22:12 +02:00
lint:
image: python:3.6-alpine
commands:
2021-04-24 22:56:27 +02:00
- apk update && apk add --no-cache build-base
2021-05-15 16:21:48 +02:00
- pip install -e .[lint]
- black --check setup.py app
- flake8 setup.py app