ci: isolate OMP workflow verification (#2382)

Co-authored-by: jan <jan@w-saxs001.local>
This commit is contained in:
Yang Cheng 2026-06-30 06:51:00 +08:00 committed by GitHub
parent 73895b5d05
commit 00b443eddb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 30 additions and 5 deletions

View File

@ -171,6 +171,28 @@ jobs:
run: node scripts/ci/validate-no-personal-paths.js
continue-on-error: false
python-tests:
name: Python Tests
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Checkout
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
with:
persist-credentials: false
- name: Setup Python
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
with:
python-version: '3.11'
- name: Install Python dependencies
run: python -m pip install --upgrade pip && python -m pip install -e '.[dev]'
- name: Run Python tests
run: python -m pytest tests/test_*.py -m "not integration"
security:
name: Security Scan
runs-on: ubuntu-latest
@ -246,8 +268,5 @@ jobs:
- name: Install dependencies
run: npm ci --ignore-scripts
- name: Run ESLint
run: npx eslint scripts/**/*.js tests/**/*.js
- name: Run markdownlint
run: npx markdownlint "agents/**/*.md" "skills/**/*.md" "commands/**/*.md" "rules/**/*.md"
- name: Run lint
run: npm run lint

View File

@ -38,6 +38,9 @@ jobs:
- name: Verify OpenCode package payload
run: node tests/scripts/build-opencode.test.js
- name: Verify OMP adapter payload
run: node tests/omp/omp-plugin.test.js
- name: Validate version tag
run: |
if ! [[ "${REF_NAME}" =~ ^v[0-9]+\.[0-9]+\.[0-9]+(-[0-9A-Za-z.-]+)?$ ]]; then

View File

@ -62,6 +62,9 @@ jobs:
- name: Verify OpenCode package payload
run: node tests/scripts/build-opencode.test.js
- name: Verify OMP adapter payload
run: node tests/omp/omp-plugin.test.js
- name: Validate version tag
env:
INPUT_TAG: ${{ inputs.tag }}