Add woodpecker ci pipeline
Added basic continuous integration tests to run on any push. On main branch, the python program is built.
This commit is contained in:
parent
b0f8c48e99
commit
4af3f439fa
1 changed files with 48 additions and 0 deletions
48
.woodpecker.yml
Normal file
48
.woodpecker.yml
Normal 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 ]
|
||||||
|
|
Loading…
Reference in a new issue