-
Notifications
You must be signed in to change notification settings - Fork 1
81 lines (76 loc) · 2.49 KB
/
Copy pathci.yml
File metadata and controls
81 lines (76 loc) · 2.49 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
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 python -m pure_auto_codeql.tools.smoke_codeql
- run: uv run pytest -m real_codeql -q
portability:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: astral-sh/setup-uv@v6
- uses: actions/setup-python@v5
with:
python-version: "3.13"
- run: uv sync --frozen --dev
- run: uv run pytest -q test/test_codeql_lsp_service.py test/test_lsp_environment.py test/test_bootstrap.py test/test_process_control_portability.py