File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 99 runs-on : ubuntu-latest
1010 steps :
1111 - uses : actions/checkout@v6
12+ with :
13+ fetch-depth : 0
1214 - uses : actions/setup-python@v6
1315 with :
1416 python-version : " 3.12"
1517 - uses : actions/setup-node@v6
1618 with :
1719 node-version : " 22"
20+ - name : Check whitespace
21+ run : |
22+ set -euo pipefail
23+ if [ "${{ github.event_name }}" = "pull_request" ]; then
24+ git fetch --no-tags --depth=1 origin "${{ github.base_ref }}"
25+ git diff --check "origin/${{ github.base_ref }}...HEAD"
26+ else
27+ git diff-tree --check --no-commit-id --root -r HEAD
28+ fi
1829 - name : Validate runtime targets
1930 run : python3 scripts/runtime_settings.py validate
2031 - name : Run unit tests
Original file line number Diff line number Diff line change @@ -4,3 +4,7 @@ __pycache__/
44.venv /
55.wrangler /
66local /
7+ .env
8+ .env. *
9+ ! * .env.example
10+ web /strategy-switch-console /wrangler.toml
Original file line number Diff line number Diff line change @@ -26,8 +26,8 @@ It supports the system but does not decide which strategy should be live. Strate
2626## Quick start
2727
2828``` bash
29- python -m pip install -e .
30- python -m pytest -q
29+ python3 scripts/runtime_settings.py validate
30+ python3 -m unittest discover -s tests -v
3131```
3232
3333## Manual Strategy Switch
Original file line number Diff line number Diff line change @@ -26,8 +26,8 @@ QuantRuntimeSettings 是 QuantStrategyLab 的运行配置包。为 QuantStrategy
2626## 快速开始
2727
2828``` bash
29- python -m pip install -e .
30- python -m pytest -q
29+ python3 scripts/runtime_settings.py validate
30+ python3 -m unittest discover -s tests -v
3131```
3232
3333## 一键切换策略
Original file line number Diff line number Diff line change @@ -7,4 +7,3 @@ requires-python = ">=3.11"
77[tool .ruff ]
88line-length = 120
99target-version = " py311"
10-
You can’t perform that action at this time.
0 commit comments