From 00b443eddb7ab9c752691d3bd6e1e41b74a697e8 Mon Sep 17 00:00:00 2001 From: Yang Cheng Date: Tue, 30 Jun 2026 06:51:00 +0800 Subject: [PATCH] ci: isolate OMP workflow verification (#2382) Co-authored-by: jan --- .github/workflows/ci.yml | 29 +++++++++++++++++++++----- .github/workflows/release.yml | 3 +++ .github/workflows/reusable-release.yml | 3 +++ 3 files changed, 30 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2b466158..cd72b3a4 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 36c973c3..4e2c18b6 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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 diff --git a/.github/workflows/reusable-release.yml b/.github/workflows/reusable-release.yml index 936e136e..e3d1f02f 100644 --- a/.github/workflows/reusable-release.yml +++ b/.github/workflows/reusable-release.yml @@ -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 }}