Some checks reported errors
continuous-integration/drone Build encountered an error
31 lines
682 B
YAML
31 lines
682 B
YAML
kind: pipeline
|
|
type: docker
|
|
name: quant-ci
|
|
|
|
steps:
|
|
- name: build docker image
|
|
image: docker:20.10
|
|
volumes:
|
|
- name: dockersock
|
|
path: /var/run/docker.sock
|
|
environment:
|
|
DOCKER_HOST: unix:///var/run/docker.sock
|
|
commands:
|
|
- docker build -t registry.memorion.cn/quant/strategy:${DRONE_COMMIT_SHA} .
|
|
- 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
|
|
|
|
volumes:
|
|
- name: dockersock
|
|
host:
|
|
path: /var/run/docker.sock
|
|
|
|
trigger:
|
|
branch:
|
|
- main |