habitmove/.woodpecker.yml
Marty Oehme b6ba4d131a
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
Add release step
2022-01-18 19:45:38 +01:00

59 lines
1.2 KiB
YAML

# 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
gitea_release:
image: plugins/gitea-release
settings:
api_key:
from_secret: gitea_release_token
base_url: https://git.martyoeh.me
files: dist/*
note: CHANGELOG.md
when:
event: tag
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 ]