The real T1 Windows bug (diagnosed via the now-reverted error-surfacing probe): aipass init scaffolds fine, then crashes printing its success banner — Rich writes the success glyphs through a cp1252 stdout (UnicodeEncodeError 'charmap'). Same class as the drone fix. The aipass entry point now reconfigure()s stdout/stderr to UTF-8 in place on Windows. Also: ci.yml's broad 'pytest --rootdir=.' swept in tests/e2e (which build a wheel via the dedicated e2e-wheel.yml), failing the unit lane since the harness landed; now --ignore=tests/e2e in both pytest jobs. route_command error-surfacing probe reverted to honor 'no function change' (the masked-error mislabel is noted as a separate @aipass recommendation). Local: e2e 14/14 green, aipass units 24/24, ruff clean. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
77 lines
2.3 KiB
YAML
77 lines
2.3 KiB
YAML
name: CI
|
|
|
|
on:
|
|
push:
|
|
branches: [main, dev]
|
|
pull_request:
|
|
branches: [main, dev]
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
env:
|
|
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: "true"
|
|
|
|
jobs:
|
|
lint:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
|
- uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
|
|
with:
|
|
python-version: "3.13"
|
|
- run: pip install ruff
|
|
- run: ruff check src/ tests/
|
|
- run: ruff format --check src/ tests/
|
|
|
|
test:
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
python-version: ["3.10", "3.11", "3.12", "3.13"]
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
|
- uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
|
|
with:
|
|
python-version: ${{ matrix.python-version }}
|
|
- run: |
|
|
python -m pip install --upgrade pip
|
|
pip install -e ".[dev]"
|
|
# tests/e2e build a wheel + clean venv per the dedicated e2e-wheel.yml
|
|
# workflow — they are not part of the fast unit lane.
|
|
- run: coverage run -m pytest -v --tb=short --rootdir=. --ignore=tests/e2e
|
|
|
|
standards:
|
|
name: seedgo-audit
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
|
- uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
|
|
with:
|
|
python-version: "3.13"
|
|
- run: |
|
|
python -m pip install --upgrade pip
|
|
pip install -e ".[dev]"
|
|
- name: Run seedgo standards audit
|
|
run: python .github/scripts/seedgo_audit.py
|
|
|
|
coverage:
|
|
name: coverage
|
|
needs: [test]
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
|
- uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
|
|
with:
|
|
python-version: "3.13"
|
|
- run: |
|
|
python -m pip install --upgrade pip
|
|
pip install -e ".[dev]"
|
|
- run: coverage run -m pytest --rootdir=. --ignore=tests/e2e
|
|
- run: coverage xml
|
|
- uses: codecov/codecov-action@e79a6962e0d4c0c17b229090214935d2e33f8354 # v6.0.1
|
|
with:
|
|
files: ./coverage.xml
|
|
fail_ci_if_error: false
|