docs: Add harness evolution visualization and execution guide #24
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, master, develop ] | |
| pull_request: | |
| branches: [ main, master ] | |
| # Minimal permissions — least privilege principle | |
| permissions: | |
| contents: read | |
| jobs: | |
| test: | |
| name: Test (Python ${{ matrix.python-version }}) | |
| runs-on: ubuntu-latest | |
| # Job-level permissions override workflow-level where needed | |
| permissions: | |
| contents: read | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| python-version: ["3.10", "3.11", "3.12"] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Python ${{ matrix.python-version }} | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Install core dependencies | |
| run: | | |
| pip install -e ".[dev]" | |
| - name: Run linter (ruff) | |
| run: | | |
| ruff check src/ tests/ --output-format=github | |
| - name: Run tests | |
| env: | |
| GOOGLE_API_KEY: "" | |
| FRED_API_KEY: "" | |
| run: | | |
| pytest tests/ -v --tb=short | |
| security-check: | |
| name: Secret Scanning | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Check for secrets in .env files | |
| run: | | |
| if git ls-files | grep -E "^\.env$|^\.env\." | grep -v ".env.example"; then | |
| echo "ERROR: .env file is tracked by git!" | |
| exit 1 | |
| fi | |
| echo "Security check passed — no .env files committed." |