This commit is contained in:
20
.drone.yml
20
.drone.yml
@@ -1,9 +1,21 @@
|
|||||||
kind: pipeline
|
kind: pipeline
|
||||||
type: docker
|
type: docker
|
||||||
name: test-pipeline
|
name: ci-pipeline
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: hello-world
|
- name: install-dependencies
|
||||||
image: alpine
|
image: python:3.10-slim
|
||||||
commands:
|
commands:
|
||||||
- echo "Hello, Drone CI!"
|
- pip install -r requirements.txt
|
||||||
|
|
||||||
|
- name: run-tests
|
||||||
|
image: python:3.10-slim
|
||||||
|
commands:
|
||||||
|
- pytest tests/
|
||||||
|
|
||||||
|
- name: lint
|
||||||
|
image: python:3.10-slim
|
||||||
|
commands:
|
||||||
|
- pip install flake8
|
||||||
|
- flake8 . --max-line-length=88
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user