kind: pipeline name: default steps: # 测试 - name: code-test image: python:3.9 volumes: - name: cache path: /opt/web/test commands: - pip install pytest-html -i https://mirrors.cloud.tencent.com/pypi/simple - pip install pytest-xdist -i https://mirrors.cloud.tencent.com/pypi/simple - pip install -r requirements.txt -i https://mirrors.cloud.tencent.com/pypi/simple - PATH=$PATH:/drone/src - pytest -v ./ --maxfail 10 --pastebin=all --html=/opt/web/test/py_test_report.html #- pytest -v ./ -n 5 --maxfail 10 --pastebin=all --html=/opt/web/test/py_test_report.html #failure: "fail-fast" - name: dingtalk image: lddsb/drone-dingtalk-message settings: token: 178f267b9b16b168e0a0afb223b3d41f3a58e62180ab5288aa576db02965dd72 type: markdown success_color: 008000 failure_color: FF0000 success_pic: https://img1.baidu.com/it/u=1968518221,4002244040&fm=253&fmt=auto&app=138&f=JPEG?w=640&h=400 msg_at_mobiles: 15858193327 # https://test.itlym.cn/py_test_report.html volumes: - name: cache host: path: /opt/web/test trigger: branch: - master event: - push