Compare commits

...

2 commits

Author SHA1 Message Date
9e2fb188ab
Update woodpecker
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
2022-01-18 19:12:16 +01:00
d958956f8d
Add woodpecker ci file
Added basic continuous integration tests to run on any push.
2022-01-18 18:37:23 +01:00

48
.woodpecker.yml Normal file
View file

@ -0,0 +1,48 @@
# branches: main
pipeline:
unit_tests:
image: mquade/poetry:3.9-1.1.11
commands:
- poetry config virtualenvs.create false
- poetry install
- pytest
code_lint:
image: mquade/poetry:3.9-1.1.11
commands:
- poetry config virtualenvs.create false
- poetry install
- pip install black
- black .
static_analysis:
image: mquade/poetry:3.9-1.1.11
commands:
- poetry config virtualenvs.create false
- poetry install
- pip install mypy
- mypy .
build_dist:
image: mquade/poetry:3.9-1.1.11
commands:
- poetry config virtualenvs.create false
- poetry install
- poetry build
when:
branch: main
notify_matrix:
image: plugins/matrix
settings:
homeserver: https://matrix.org
roomid:
from_secret: matrix_roomid
userid:
from_secret: matrix_userid
accesstoken:
from_secret: matrix_token
when:
status: [ success, failure ]