diff --git a/.drone.yml b/.drone.yml index 44ec5ef..d7e9a27 100644 --- a/.drone.yml +++ b/.drone.yml @@ -3,7 +3,7 @@ type: docker name: quant-ci steps: - - name: build docker image + - name: build-and-push image: docker:20.10 volumes: - name: dockersock @@ -14,11 +14,10 @@ steps: - docker build -t registry.memorion.cn/quant/strategy:${DRONE_COMMIT_SHA} . - docker push registry.memorion.cn/quant/strategy:${DRONE_COMMIT_SHA} - - name: run backtest + - name: backtest image: python:3.11-slim commands: - pip install -r requirements.txt - - mkdir -p data - python tests/run_backtest.py volumes: