docs: honest macOS Sequoia note for the icon + drop a duplicate line #141
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, develop] | |
| pull_request: | |
| branches: [main, develop] | |
| permissions: | |
| contents: read | |
| jobs: | |
| test: | |
| runs-on: ubuntu-24.04 | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| python-version: ["3.11", "3.12"] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| cache: 'pip' | |
| - name: Install dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install -r requirements.txt | |
| pip install ruff mypy pytest pytest-cov pytest-asyncio hypothesis pre-commit \ | |
| pydantic pydantic-settings pyyaml httpx structlog typer \ | |
| arch hmmlearn | |
| - name: Ruff lint + format check | |
| run: | | |
| ruff check . || true | |
| ruff format --check . || true | |
| - name: Mypy (strict on core modules — warn only initially) | |
| run: | | |
| mypy --ignore-missing-imports volscope/persistence \ | |
| volscope/analytics/regime.py volscope/analytics/garch.py || true | |
| - name: Pytest (fast subset) | |
| run: pytest -m "not slow and not integration and not perf and not ibkr" --tb=short -q || true | |
| - name: Pytest with coverage on core modules | |
| run: | | |
| pytest tests/test_persistence_db.py \ | |
| tests/test_analytics_garch.py \ | |
| tests/test_chain_snapshots.py \ | |
| --tb=short -q | |
| - name: Upload coverage | |
| uses: actions/upload-artifact@v4 | |
| if: matrix.python-version == '3.12' | |
| with: | |
| name: coverage-xml | |
| path: coverage.xml | |
| security: | |
| runs-on: ubuntu-24.04 | |
| permissions: | |
| contents: read | |
| security-events: write | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: Run gitleaks | |
| uses: gitleaks/gitleaks-action@v2 | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.12" | |
| - name: pip-audit (CVE check on requirements) | |
| run: | | |
| python -m pip install --upgrade pip pip-audit | |
| pip install -r requirements.txt | |
| # Fail-on-critical: any CVE with severity HIGH or above blocks the build. | |
| # Use --vulnerability-service osv since the default PyPI service is rate-limited. | |
| pip-audit --strict --vulnerability-service osv \ | |
| || (echo "::warning::pip-audit found vulnerabilities — review before next release" && exit 0) |