ws: batch_fetch returns partial on idle/timeout instead of failing wh… #5
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: [main] | |
| pull_request: | |
| branches: [main] | |
| jobs: | |
| smoke: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 5 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.11' | |
| - name: install package | |
| run: python3 -m pip install -e . | |
| - name: smoke import (sanity check the package builds + imports) | |
| run: | | |
| python3 -c " | |
| import tr_api | |
| for m in ('client', 'cookies', 'documents', 'portfolio', 'profiles', | |
| 'protocol', 'timeline_detail', 'transactions', 'waf', | |
| 'accounts', 'activity_log', 'alarms', 'auth', | |
| 'savings_plans', 'watchlist'): | |
| if not hasattr(tr_api, m): | |
| raise SystemExit(f'tr_api.{m} missing') | |
| print('OK — all 15 modules importable') | |
| " |