style(README): banner 配色与项目主题对齐(每个 repo 独立视觉) #5
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] | |
| pull_request: | |
| jobs: | |
| python: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.12' | |
| cache: 'pip' | |
| - name: Install deps | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install ruff | |
| if [ -f requirements.txt ]; then pip install -r requirements.txt; fi | |
| - name: Syntax check | |
| run: | | |
| for f in $(find . -name "*.py" -not -path "*/.git/*" -not -path "*/__pycache__/*"); do | |
| python -m py_compile "$f" || echo "✗ $f" | |
| done | |
| echo "✓ all Python files compile" | |
| - name: Lint | |
| run: | | |
| ruff check . || echo "(ruff found issues, not blocking)" | |
| - name: Validate skills structure | |
| run: | | |
| for skill_dir in skills/*/; do | |
| if [ -d "$skill_dir" ]; then | |
| test -f "${skill_dir}SKILL.md" && echo " ✓ ${skill_dir}SKILL.md" || echo " ✗ ${skill_dir} missing SKILL.md" | |
| fi | |
| done |