Skip to content

Commit 44783a2

Browse files
committed
chore: modernize maintenance workflow
1 parent eabada8 commit 44783a2

33 files changed

Lines changed: 1945 additions & 4827 deletions

.cursor/commands/openspec-apply.md

Lines changed: 0 additions & 23 deletions
This file was deleted.

.cursor/commands/openspec-archive.md

Lines changed: 0 additions & 27 deletions
This file was deleted.

.cursor/commands/openspec-proposal.md

Lines changed: 0 additions & 27 deletions
This file was deleted.

.github/dependabot.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: uv
4+
directory: /
5+
schedule:
6+
interval: weekly
7+
day: monday
8+
time: "09:00"
9+
timezone: Asia/Shanghai
10+
open-pull-requests-limit: 10
11+
groups:
12+
python-security:
13+
applies-to: security-updates
14+
patterns:
15+
- "*"
16+
python-minor:
17+
applies-to: version-updates
18+
update-types:
19+
- minor
20+
- patch
21+
22+
- package-ecosystem: npm
23+
directory: /tools/mcp_ripgrep
24+
schedule:
25+
interval: weekly
26+
day: monday
27+
time: "09:20"
28+
timezone: Asia/Shanghai
29+
open-pull-requests-limit: 10
30+
groups:
31+
mcp-ripgrep-security:
32+
applies-to: security-updates
33+
patterns:
34+
- "*"
35+
mcp-ripgrep-minor:
36+
applies-to: version-updates
37+
update-types:
38+
- minor
39+
- patch

.github/workflows/ci.yml

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
workflow_dispatch:
9+
10+
permissions:
11+
contents: read
12+
13+
jobs:
14+
python:
15+
name: Python checks
16+
runs-on: ubuntu-latest
17+
steps:
18+
- name: Checkout
19+
uses: actions/checkout@v5
20+
21+
- name: Install uv
22+
uses: astral-sh/setup-uv@v8
23+
with:
24+
enable-cache: true
25+
26+
- name: Set up Python
27+
uses: actions/setup-python@v6
28+
with:
29+
python-version-file: .python-version
30+
31+
- name: Verify lockfile
32+
run: uv lock --check
33+
34+
- name: Install dependencies
35+
run: uv sync --locked
36+
37+
- name: Run tests
38+
run: uv run pytest -q
39+
40+
- name: Compile Python modules
41+
run: uv run python -m compileall -q Analyze.py api core services utils agents tools
42+
43+
- name: Check diff whitespace
44+
run: git diff --check
45+
46+
mcp-ripgrep:
47+
name: MCP ripgrep checks
48+
runs-on: ubuntu-latest
49+
defaults:
50+
run:
51+
working-directory: tools/mcp_ripgrep
52+
steps:
53+
- name: Checkout
54+
uses: actions/checkout@v5
55+
56+
- name: Set up Node.js
57+
uses: actions/setup-node@v6
58+
with:
59+
node-version: "22"
60+
cache: npm
61+
cache-dependency-path: tools/mcp_ripgrep/package-lock.json
62+
63+
- name: Install dependencies
64+
run: npm ci
65+
66+
- name: Audit dependencies
67+
run: npm audit --audit-level=high
68+
69+
- name: Build
70+
run: npm run build

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,9 @@ env/
3030
# IDE
3131
.vscode/
3232
.idea/
33+
.cursor/
34+
.windsurf/
35+
.trae/
3336
*.swp
3437
*.swo
3538
*~
@@ -49,6 +52,7 @@ temp/
4952
tmp/
5053
*.tmp
5154
output/
55+
results/
5256

5357

5458
# OS

.trae/documents/优化C语言CodeQL模板全面覆盖CVE查询.md

Lines changed: 0 additions & 65 deletions
This file was deleted.

.trae/documents/兼容新版 CodeQL 的 C 模板修订方案.md

Lines changed: 0 additions & 67 deletions
This file was deleted.

.vscode/settings.json

Lines changed: 0 additions & 8 deletions
This file was deleted.

.windsurf/workflows/openspec-apply.md

Lines changed: 0 additions & 21 deletions
This file was deleted.

0 commit comments

Comments
 (0)