tg_rss_bot/.drone.yml
Alexey Skobkin 2e44df0bbd
All checks were successful
continuous-integration/drone/push Build is passing
#2 #7 Telegram module (#10)
`telegram` module. Closes #2 #7.

Two service classes:

* `Notifier` class
* `CommandProcessor` class

Two [middlewares](https://github.com/eternnoir/pyTelegramBotAPI/tree/master/examples/middleware):

* `UserAuthMiddleware`
* `ExceptionHandlerMiddleware`

One exception for usage in the code called by the bot:

* `DisplayableException`

Merge **ONLY** after #9 is merged.

Reviewed-on: #10
Reviewed-by: Miroslavsckaya <miroslavsckaya@noreply.git.skobk.in>
2022-05-30 23:54:26 +03:00

53 lines
883 B
YAML

# https://docs.drone.io/pipeline/overview/
# https://docs.drone.io/pipeline/configuration/
kind: pipeline
type: docker
name: build
steps:
- name: build-app
image: 'python:3.10-alpine'
commands:
- python -m venv .venv
- source ./.venv/bin/activate
- pip install -r requirements.txt
---
kind: pipeline
type: docker
name: code-audit
steps:
- name: pylama
image: 'python:3.10-alpine'
commands:
- python -m venv .venv
- source ./.venv/bin/activate
- 'pip install pylama pylama\[all\] > /dev/null'
- pylama
when:
event:
include:
- pull_request
branch:
exclude: master
---
kind: pipeline
type: docker
name: deploy
steps:
- name: deploy
image: alpine
commands:
- 'echo "TODO: implement deploy"'
when:
branch: master
depends_on:
- build
- code-audit