fix: use trading calendar for closed-market checks #19
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: CI | |
| on: | |
| push: | |
| branches: [master, main] | |
| pull_request: | |
| branches: [master, main] | |
| jobs: | |
| verification: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 15 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.12' | |
| cache: 'pip' | |
| - name: Install dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install -r requirements.txt | |
| pip install -e . | |
| pip install pytest | |
| - name: Pytest | |
| run: python -m pytest -q | |
| - name: Compile package | |
| run: python -m compileall -q src/alphaclaude | |
| - name: Unified CLI help | |
| run: alphaclaude --help | |
| - name: Engine CLI help | |
| run: alphaclaude engine start --help | |
| - name: Quote CLI help | |
| run: alphaclaude tools quote --help | |
| - name: Tool schema check | |
| run: | | |
| for tool in quote technical fundamental flow news screen backtest trend signal_detector pivot fibonacci sentiment portfolio risk signal signal_rules; do | |
| echo "Checking alphaclaude tools $tool schema..." | |
| alphaclaude tools "$tool" --help > /dev/null 2>&1 || { | |
| echo "ERROR: alphaclaude tools $tool --help failed" | |
| exit 1 | |
| } | |
| done | |
| echo "All package tools pass schema check" | |
| - name: Signal rules baseline check | |
| run: | | |
| echo "Running signal_rules --list..." | |
| alphaclaude tools signal_rules --list | |
| echo "Baseline check OK" | |
| - name: Risk calculator help | |
| run: | | |
| alphaclaude tools risk --help | |
| - name: Signal validator help | |
| run: | | |
| alphaclaude tools signal --help |