From 302dc79ebb7842ff338b0e3bfbb14817d9fe7740 Mon Sep 17 00:00:00 2001 From: CSY-ModelCloud Date: Wed, 6 May 2026 09:15:16 +0800 Subject: [PATCH 1/4] [CI] do install test before release --- .github/workflows/release.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 9870de2..dda7c62 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -52,12 +52,15 @@ jobs: cache: 'pip' - name: Install requirements - run: pip install pip build setuptools twine packaging -U + run: | + pip install uv + uv pip isntall build setuptools twine packaging -U - name: Build package run: | python -m build --sdist twine check dist/* + uv pip install dist/* - name: Upload source artifact uses: actions/upload-artifact@v7 @@ -100,7 +103,8 @@ jobs: run: | which python python -V - pip install build setuptools twine packaging -U + pip install uv + uv pip install build setuptools twine packaging -U - name: Compile run: | @@ -114,6 +118,7 @@ jobs: whl=$(ls -t dist/*.whl | head -n 1 | xargs basename) echo "WHL_NAME=$whl" >> $GITHUB_ENV twine check dist/$whl + uv pip install dist/* - name: Upload wheel artifact uses: actions/upload-artifact@v7 From 98ff56e830d10e916e9fd7f2a9e80d699ad794a2 Mon Sep 17 00:00:00 2001 From: CSY-ModelCloud Date: Wed, 6 May 2026 09:16:49 +0800 Subject: [PATCH 2/4] [CI] install to ci system --- .github/workflows/release.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index dda7c62..51e56d4 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -54,13 +54,13 @@ jobs: - name: Install requirements run: | pip install uv - uv pip isntall build setuptools twine packaging -U + uv pip isntall build setuptools twine packaging -U --system - name: Build package run: | python -m build --sdist twine check dist/* - uv pip install dist/* + uv pip install dist/* --system - name: Upload source artifact uses: actions/upload-artifact@v7 @@ -104,7 +104,7 @@ jobs: which python python -V pip install uv - uv pip install build setuptools twine packaging -U + uv pip install build setuptools twine packaging -U --system - name: Compile run: | @@ -118,7 +118,7 @@ jobs: whl=$(ls -t dist/*.whl | head -n 1 | xargs basename) echo "WHL_NAME=$whl" >> $GITHUB_ENV twine check dist/$whl - uv pip install dist/* + uv pip install dist/* --system - name: Upload wheel artifact uses: actions/upload-artifact@v7 From 7413874f0be8308dd6a3b8a42762e553ca270ace Mon Sep 17 00:00:00 2001 From: CSY-ModelCloud Date: Wed, 6 May 2026 13:51:02 +0800 Subject: [PATCH 3/4] fix build warning --- .github/workflows/release.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 51e56d4..d3ecad1 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -104,12 +104,12 @@ jobs: which python python -V pip install uv - uv pip install build setuptools twine packaging -U --system + uv pip install build setuptools twine packaging cmake wheel ninja -U --system - name: Compile run: | python -V - python setup.py bdist_wheel + python -m build -w --no-isolation - name: Test install shell: bash From cd73732119d5b9c5d8dc7a5a5f88237469e2a864 Mon Sep 17 00:00:00 2001 From: CSY-ModelCloud Date: Wed, 6 May 2026 13:51:42 +0800 Subject: [PATCH 4/4] add test install --- .github/workflows/release.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index d3ecad1..fc88249 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -59,6 +59,9 @@ jobs: - name: Build package run: | python -m build --sdist + + - name: Test install + run: | twine check dist/* uv pip install dist/* --system