From 90e3245dc4a6dbe6996a78ccb38b82265929344e Mon Sep 17 00:00:00 2001 From: CSY-ModelCloud Date: Wed, 15 Apr 2026 16:04:04 +0800 Subject: [PATCH 1/3] [CI] always run if triggered by workflow_dispatch --- .github/workflows/compatibility.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/compatibility.yml b/.github/workflows/compatibility.yml index 01635198f..20f4fc16a 100644 --- a/.github/workflows/compatibility.yml +++ b/.github/workflows/compatibility.yml @@ -13,14 +13,18 @@ jobs: prepare: runs-on: ubuntu-latest outputs: - versions: ${{ steps.parser.outputs.versions }} + versions: ${{ steps.parser.outputs.versions || '[]' }} steps: - uses: actions/checkout@v6 + with: + fetch-depth: 2 - name: Check license line changed id: check run: | - if git diff HEAD~1 HEAD -- pyproject.toml | grep -q '^[+-].*license = "Apache-2.0"'; then + if [ "${{ github.event_name }}" = "workflow_dispatch" ]; then + echo "changed=true" >> "$GITHUB_OUTPUT" + elif git diff HEAD~1 HEAD -- pyproject.toml | grep -q '^[+-].*license = "Apache-2.0"'; then echo "changed=true" >> "$GITHUB_OUTPUT" else echo "changed=false" >> "$GITHUB_OUTPUT" @@ -40,6 +44,7 @@ jobs: check: needs: prepare + if: needs.prepare.outputs.versions != '[]' runs-on: ubuntu-latest strategy: fail-fast: false From d33739aef9b518ab29438d2233540f52f4a23b53 Mon Sep 17 00:00:00 2001 From: CSY-ModelCloud Date: Wed, 15 Apr 2026 16:06:18 +0800 Subject: [PATCH 2/3] [CI] fix path --- .github/workflows/compatibility.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/compatibility.yml b/.github/workflows/compatibility.yml index 20f4fc16a..dbd22faed 100644 --- a/.github/workflows/compatibility.yml +++ b/.github/workflows/compatibility.yml @@ -39,7 +39,7 @@ jobs: if: steps.check.outputs.changed == 'true' id: parser run: | - versions=$(python ci_loop_versions.py setuptools ">=77.0.1,<83") + versions=$(python .github/scripts/ci_loop_versions.py setuptools ">=77.0.1,<83") echo "versions=$versions" >> "$GITHUB_OUTPUT" check: From 15b68fdb2f0148a0ec200b11f2b0f282b6cdcbb2 Mon Sep 17 00:00:00 2001 From: CSY-ModelCloud Date: Wed, 15 Apr 2026 16:11:38 +0800 Subject: [PATCH 3/3] [CI] add missing pkgs --- .github/workflows/compatibility.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/compatibility.yml b/.github/workflows/compatibility.yml index dbd22faed..07e1314ce 100644 --- a/.github/workflows/compatibility.yml +++ b/.github/workflows/compatibility.yml @@ -39,6 +39,7 @@ jobs: if: steps.check.outputs.changed == 'true' id: parser run: | + python -m pip install --upgrade requests packaging versions=$(python .github/scripts/ci_loop_versions.py setuptools ">=77.0.1,<83") echo "versions=$versions" >> "$GITHUB_OUTPUT"