This commit is contained in:
parent
302258ce6c
commit
5ba06140dc
15
.drone.star
15
.drone.star
@ -15,6 +15,19 @@ def main(ctx):
|
||||
|
||||
# Run tests
|
||||
pipelines += tests()
|
||||
pipelines += [{
|
||||
"kind": "pipeline",
|
||||
"name": "lint",
|
||||
"workspace": get_workspace(),
|
||||
"steps": [{
|
||||
"name": "lint",
|
||||
"image": "python:3",
|
||||
"commands": [
|
||||
"python -V",
|
||||
"make lint",
|
||||
]
|
||||
}]
|
||||
}]
|
||||
|
||||
# Add pypi push pipeline
|
||||
pipelines += push_to_pypi()
|
||||
@ -106,7 +119,7 @@ def push_to_pypi():
|
||||
return [{
|
||||
"kind": "pipeline",
|
||||
"name": "deploy to pypi",
|
||||
"depends_on": ["tests"],
|
||||
"depends_on": ["tests", "lint"],
|
||||
"workspace": get_workspace(),
|
||||
"trigger": {
|
||||
"ref": [
|
||||
|
Loading…
Reference in New Issue
Block a user