From f09d5d1a8f74ca91062337c75fb84aedacdfa453 Mon Sep 17 00:00:00 2001 From: ai-liuys Date: Sat, 21 Feb 2026 17:20:58 +0800 Subject: [PATCH] =?UTF-8?q?=E9=95=9C=E5=83=8F=E6=9E=84=E5=BB=BA=E6=B5=8B?= =?UTF-8?q?=E8=AF=95=E6=B5=81=E6=B0=B4=E7=BA=BF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .drone.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.drone.yml b/.drone.yml index 120b8ef..9fe737b 100644 --- a/.drone.yml +++ b/.drone.yml @@ -15,9 +15,19 @@ steps: 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 "回测数据生成完成,存放在 data/ 目录下" + trigger: branch: - main \ No newline at end of file