mirror of
https://github.com/titanwings/colleague-skill.git
synced 2026-10-29 12:40:16 +08:00
* Share one host table, ship one payload, split optional deps - tools/hosts.json is the single host path table, read by bin/distilly.mjs and tools/hosts.py (install_distilly, install_generated_skill, install_claude_generated_skill, skill_writer). - package.json "files" is the single publish list; the npm CLI and the Python installer both derive the install payload from it, so the Python installer no longer copies docs/, tests/ or .github/ into skill dirs and now supports all eight hosts. - requirements.txt keeps only requests; collector extras move to requirements-optional.txt. - Ruff is pinned with an explicit rule set and blocks CI; fix its findings. - tests/_paths.py replaces the sys.path boilerplate in 11 test files. - Rename the cover image to docs/social-preview.png so redesigns stop adding versioned files. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_014AQdagxHQtDiYDXHNMsRSK * Keep reinstalling from an installed copy working An installed copy has no package.json, so install_distilly.py copies it whole (minus caches) instead of failing to read the publish list. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_014AQdagxHQtDiYDXHNMsRSK * Allow running CI manually A stacked PR retargeted after its base merges gets no CI run until the next push; workflow_dispatch lets a maintainer start one. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_014AQdagxHQtDiYDXHNMsRSK --------- Co-authored-by: Claude <noreply@anthropic.com>
57 lines
1.4 KiB
YAML
57 lines
1.4 KiB
YAML
name: CI
|
|
|
|
on:
|
|
push:
|
|
branches: [dot-skill, main]
|
|
pull_request:
|
|
branches: [dot-skill, main]
|
|
# Lets a stacked PR, retargeted after its base merges, run CI without a new push.
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
test:
|
|
name: Python ${{ matrix.python-version }}
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
python-version: ["3.9", "3.11"]
|
|
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Set up Python ${{ matrix.python-version }}
|
|
uses: actions/setup-python@v5
|
|
with:
|
|
python-version: ${{ matrix.python-version }}
|
|
cache: pip
|
|
|
|
- name: Install dependencies
|
|
run: |
|
|
python -m pip install --upgrade pip
|
|
pip install -r requirements.txt -r requirements-optional.txt
|
|
|
|
- name: Compile all Python sources
|
|
run: python -m compileall -q tools
|
|
|
|
- name: Run unit tests
|
|
run: |
|
|
if [ -d tests ]; then
|
|
python -m unittest discover -s tests -p 'test_*.py' -v
|
|
else
|
|
echo "No tests/ directory yet — skipping unittest discover."
|
|
fi
|
|
|
|
lint:
|
|
name: Ruff
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: actions/setup-python@v5
|
|
with:
|
|
python-version: "3.11"
|
|
- name: Install ruff
|
|
run: pip install ruff==0.16.8
|
|
- name: Run ruff
|
|
run: ruff check tools/ tests/
|