测试Python覆盖率Codecov
continuous-integration/drone/push Build is failing Details

main
lzwang 2022-09-05 00:50:12 +08:00
parent c7d1d9be8e
commit 2c0d250ee4
1 changed files with 16 additions and 10 deletions

View File

@ -27,18 +27,24 @@ steps:
- python ./python/hello.py - python ./python/hello.py
- pytest --cov ./python/ - pytest --cov ./python/
- name: codecov - name: notify
image: robertstettner/drone-codecov image: drillster/drone-email
pull: if-not-exists pull: if-not-exists
settings: settings:
token: host:
from_secret: codecov_pytest from_secret: work_wx_email_host
files: port:
- python/lcov.info from_secret: work_wx_email_port
flags: username: lzwang
- unit password:
from_secret: work_wx_noreply_password
from:
from_secret: work_wx_noreply_email
skip_verify: false
recipients:
- lzwang1994@163.com
subject: "${DRONE_REPO_NAME} Build No.${DRONE_BUILD_NUMBER}"
body: "${DRONE_COMMIT_AUTHOR} please visit ${DRONE_BUILD_LINK}"
- name: "CI失败 微信推送" - name: "CI失败 微信推送"
# https://plugins.drone.io/plugins/wechat-2 # https://plugins.drone.io/plugins/wechat-2