Some checks reported errors
continuous-integration/drone Build encountered an error
28 lines
711 B
YAML
28 lines
711 B
YAML
kind: pipeline
|
|
type: docker
|
|
name: quant-ci
|
|
|
|
steps:
|
|
- name: build docker image
|
|
image: docker:20.10
|
|
privileged: true
|
|
environment:
|
|
DOCKER_HOST: tcp://docker:2375
|
|
DOCKER_TLS_VERIFY: "0"
|
|
commands:
|
|
- echo "构建 Docker 镜像..."
|
|
- docker build -t registry.memorion.cn/quant/strategy:${DRONE_COMMIT_SHA} .
|
|
- echo "推送 Docker 镜像到私有 Registry..."
|
|
- docker push registry.memorion.cn/quant/strategy:${DRONE_COMMIT_SHA}
|
|
|
|
- name: run backtest
|
|
image: python:3.11-slim
|
|
commands:
|
|
- pip install -r requirements.txt
|
|
- mkdir -p data
|
|
- python tests/run_backtest.py
|
|
- echo "回测数据生成完成"
|
|
|
|
trigger:
|
|
branch:
|
|
- main |