hotfix r18: implement-lifecycle 收敛为单一 success-aware 谓词 + runner 路径自清陈… #911
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: consensus-rnd-ci | |
| on: | |
| pull_request: | |
| branches: | |
| - auto-refact-dev | |
| - dev | |
| push: | |
| branches: | |
| - auto-refact-dev | |
| - dev | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| concurrency: | |
| group: consensus-rnd-ci-${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| contract-tests: | |
| name: contract-tests | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: Fetch source-regression base | |
| run: git fetch origin auto-refact-dev | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.12" | |
| - name: Run contract tests | |
| run: | | |
| python3 -m unittest discover -s skills/codex-refactor-loop/scripts -p 'test_*.py' | |
| python3 -m unittest discover -s skills/sshx/tests -p 'test_*.py' | |
| manifest-version-sync: | |
| name: manifest-version-sync | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.12" | |
| - name: Check manifest version sync | |
| run: python3 skills/codex-refactor-loop/scripts/consensus-rnd-cli check-manifest | |
| skill-degradation: | |
| name: skill-degradation | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.12" | |
| - name: Check skill degradation | |
| run: python3 skills/codex-refactor-loop/scripts/consensus-rnd-cli check-degradation --static | |
| lint-advisory: | |
| name: lint-advisory | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.12" | |
| - name: Install advisory lint tools | |
| shell: bash | |
| run: | | |
| set +e | |
| python3 -m pip install --user ruff | |
| RUFF_INSTALL_STATUS=$? | |
| npm install -g markdownlint-cli2 | |
| MARKDOWNLINT_INSTALL_STATUS=$? | |
| { | |
| echo "## lint-advisory installs" | |
| echo "- ruff install exit: ${RUFF_INSTALL_STATUS}" | |
| echo "- markdownlint-cli2 install exit: ${MARKDOWNLINT_INSTALL_STATUS}" | |
| } >> "$GITHUB_STEP_SUMMARY" | |
| exit 0 | |
| - name: Run advisory linters | |
| shell: bash | |
| run: | | |
| set +e | |
| if compgen -G "skills/codex-refactor-loop/scripts/*.sh" > /dev/null; then shellcheck skills/codex-refactor-loop/scripts/*.sh; else true; fi | |
| SHELLCHECK_STATUS=$? | |
| python3 -m ruff check --select E9,F63,F7,F82 skills/codex-refactor-loop/scripts/consensus-rnd-cli skills/codex-refactor-loop/scripts/codex_refactor_loop | |
| RUFF_STATUS=$? | |
| markdownlint-cli2 "**/*.md" "!node_modules" "!.git" "!.refactor-loop" | |
| MARKDOWNLINT_STATUS=$? | |
| { | |
| echo "## lint-advisory results" | |
| echo "- shellcheck exit: ${SHELLCHECK_STATUS}" | |
| echo "- ruff exit: ${RUFF_STATUS}" | |
| echo "- markdownlint-cli2 exit: ${MARKDOWNLINT_STATUS}" | |
| } >> "$GITHUB_STEP_SUMMARY" | |
| exit 0 |