docs: polish README and add competition result #46
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: | |
| pull_request: | |
| push: | |
| branches: [main] | |
| permissions: | |
| contents: read | |
| security-events: write | |
| jobs: | |
| quality: | |
| runs-on: ubuntu-latest | |
| services: | |
| postgres: | |
| image: postgres:17-alpine | |
| env: | |
| POSTGRES_DB: pure_codeql | |
| POSTGRES_USER: pure_codeql | |
| POSTGRES_PASSWORD: pure_codeql | |
| ports: ["5432:5432"] | |
| options: >- | |
| --health-cmd "pg_isready -U pure_codeql" | |
| --health-interval 5s --health-timeout 3s --health-retries 20 | |
| redis: | |
| image: redis:8-alpine | |
| ports: ["6379:6379"] | |
| options: >- | |
| --health-cmd "redis-cli ping" | |
| --health-interval 5s --health-timeout 3s --health-retries 20 | |
| env: | |
| DATABASE_URL: postgresql+asyncpg://pure_codeql:pure_codeql@127.0.0.1:5432/pure_codeql | |
| REDIS_URL: redis://127.0.0.1:6379/0 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: astral-sh/setup-uv@v6 | |
| with: | |
| enable-cache: true | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.13" | |
| - run: uv sync --frozen --dev | |
| - run: uv run ruff check pure_auto_codeql test migrations | |
| - run: uv run pyright | |
| - run: uv run python -m compileall -q Analyze.py pure_auto_codeql migrations | |
| - run: uv run alembic upgrade head | |
| - run: uv run pytest -m "not real_codeql and not real_llm" --cov --cov-report=xml | |
| - run: uv run pip-audit | |
| - run: npm ci && npm run build && npm test && npm audit --audit-level=moderate | |
| working-directory: tools/mcp_ripgrep | |
| codeql-golden: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: astral-sh/setup-uv@v6 | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.13" | |
| - uses: github/codeql-action/init@v4 | |
| with: | |
| languages: java-kotlin, python, c-cpp | |
| - run: uv sync --frozen --dev | |
| - run: uv run pytest -m real_codeql -q |