-
Notifications
You must be signed in to change notification settings - Fork 138
/
.drone.yml
53 lines (46 loc) · 944 Bytes
/
.drone.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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
kind: pipeline
type: docker
name: Build Tests
platform:
os: linux
arch: amd64
steps:
- name: Flake8
image: abcminiuser/docker-ci-python:latest
pull: always
commands:
- flake8 --config .flake8 src/
- name: Bandit
image: abcminiuser/docker-ci-python:latest
pull: always
commands:
- bandit --ini .bandit -r src/
- name: MyPy
image: abcminiuser/docker-ci-python:latest
pull: always
commands:
- mypy --ignore-missing-imports src/
- name: Tests
image: abcminiuser/docker-ci-python:latest
pull: always
commands:
- apk add jpeg-dev zlib-dev
- pip install Pillow
- python test/test.py
- name: Documentation
image: abcminiuser/docker-ci-python:latest
pull: always
commands:
- make -C doc html
- name: Packaging
image: abcminiuser/docker-ci-python:latest
pull: always
commands:
- python -m build
- twine check dist/*
depends_on:
- Flake8
- Bandit
- MyPy
- Tests
- Documentation