docs: README v5.0.0 atualizado — Scanner Noológico, 128 agentes, 156 … #135
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 — OpenCode Ecosystem | |
| on: | |
| push: | |
| branches: [main, master] | |
| pull_request: | |
| branches: [main, master] | |
| workflow_dispatch: | |
| jobs: | |
| lint: | |
| name: Lint Gate | |
| runs-on: windows-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install Python linter | |
| run: pip install ruff | |
| - name: Ruff check (Python) | |
| run: ruff check . --exclude node_modules,.venv,__pycache__ | |
| - name: Install Node linter | |
| run: npm install -g eslint | |
| - name: ESLint check (TypeScript) | |
| run: eslint plugins/ command/ --ext .ts | |
| continue-on-error: true | |
| unit-tests: | |
| name: Unit Test Gate | |
| needs: lint | |
| runs-on: windows-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Setup Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.11' | |
| - name: Install Python deps | |
| run: pip install -r requirements-dev.txt | |
| continue-on-error: true | |
| - name: Run core unit tests | |
| run: pytest tests/core/ -v --tb=short | |
| continue-on-error: true | |
| - name: Run nexus unit tests | |
| run: pytest tests/nexus/ -v --tb=short | |
| continue-on-error: true | |
| - name: Run editais-br unit tests | |
| run: pytest editais-br/tests/unit/ -v --tb=short | |
| continue-on-error: true | |
| spec-coverage: | |
| name: Spec Coverage Gate | |
| needs: unit-tests | |
| runs-on: windows-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Setup Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.11' | |
| - name: Check spec coverage | |
| run: python scripts/spec_coverage.py --threshold 80 | |
| integration: | |
| name: Integration Test Gate | |
| needs: spec-coverage | |
| runs-on: windows-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Setup Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.11' | |
| - name: Install Python deps | |
| run: pip install -r requirements-dev.txt | |
| continue-on-error: true | |
| - name: Run integration tests | |
| run: pytest tests/integration/ -v --tb=long -x | |
| continue-on-error: true | |
| health-check: | |
| name: Health Check Gate | |
| needs: integration | |
| runs-on: windows-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Setup Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.11' | |
| - name: Run health check | |
| run: python scripts/health_check.py | |
| continue-on-error: true | |
| report: | |
| name: CI Report | |
| needs: [lint, unit-tests, spec-coverage, integration, health-check] | |
| runs-on: windows-latest | |
| if: always() | |
| steps: | |
| - name: Generate CI report | |
| run: | | |
| echo "## CI Pipeline Report — OpenCode Ecosystem" >> $env:GITHUB_STEP_SUMMARY | |
| echo "" >> $env:GITHUB_STEP_SUMMARY | |
| echo "| Gate | Status |" >> $env:GITHUB_STEP_SUMMARY | |
| echo "|------|--------|" >> $env:GITHUB_STEP_SUMMARY | |
| echo "| Lint | ${{ needs.lint.result }} |" >> $env:GITHUB_STEP_SUMMARY | |
| echo "| Unit Tests | ${{ needs.unit-tests.result }} |" >> $env:GITHUB_STEP_SUMMARY | |
| echo "| Spec Coverage | ${{ needs.spec-coverage.result }} |" >> $env:GITHUB_STEP_SUMMARY | |
| echo "| Integration | ${{ needs.integration.result }} |" >> $env:GITHUB_STEP_SUMMARY | |
| echo "| Health Check | ${{ needs.health-check.result }} |" >> $env:GITHUB_STEP_SUMMARY |